GPX trace rails stuff
This commit is contained in:
parent
f98e6aac0a
commit
fb1467a944
9 changed files with 70 additions and 6 deletions
1
app/views/trace/_trace.rhtml
Normal file
1
app/views/trace/_trace.rhtml
Normal file
|
@ -0,0 +1 @@
|
|||
bleh
|
6
app/views/trace/list.rhtml
Normal file
6
app/views/trace/list.rhtml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<h1>Public GPS Traces</h1>
|
||||
<% if @user %>
|
||||
<%= link_to 'See just your traces', {:controller => 'trace', :action => 'mine'} %>
|
||||
<% end %>
|
||||
|
||||
<%= render :partial => 'trace', :collection => @traces %>
|
22
app/views/trace/mine.rhtml
Normal file
22
app/views/trace/mine.rhtml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<h1>Your GPS Traces</h1>
|
||||
|
||||
<%= link_to 'see all traces', {:controller => 'trace', :action => 'list'} %><br /><br />
|
||||
|
||||
<% if @user %>
|
||||
<%= start_form_tag({:action => 'create'}, :multipart => true) %>
|
||||
<table>
|
||||
<table>
|
||||
<tr><td align="right">upload GPX file:</td><td><%= file_field('trace', 'gpx_file', {:size => 50, :maxlength => 255}) %></td></tr>
|
||||
<tr><td align="right">description:</td><td><%= text_field('trace', 'description', {:size => 50, :maxlength => 255}) %></td></tr>
|
||||
<tr><td align="right">tags:</td><td><%= text_field('trace', 'tags', {:size => 50, :maxlength => 255}) %></td></tr>
|
||||
<tr><td align="right">public?</td><td><%= check_box('trace', 'public', {:checked => 'checked'}) %></td></tr>
|
||||
<tr><td></td><td>
|
||||
<%= submit_tag 'Upload' %> | <a href="http://wiki.openstreetmap.org/index.php/Upload">help</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= end_form_tag %>
|
||||
<% end %>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue