]> git.openstreetmap.org Git - rails.git/blob - app/views/traces/new.html.erb
Merge remote-tracking branch 'upstream/pull/2508'
[rails.git] / app / views / traces / new.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".upload_trace" %></h1>
3 <% end %>
4
5 <%= error_messages_for "trace" %>
6
7 <%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
8   <div class="standard-form">
9     <fieldset>
10       <div class='standard-form-row'>
11         <label for="trace_gpx_file" class="standard-label"><%= t ".upload_gpx" %></label>
12         <%= f.file_field :gpx_file %>
13       </div>
14       <div class='standard-form-row'>
15         <label class="standard-label"><%= t ".description" %></label>
16         <%= f.text_field :description %>
17       </div>
18       <div class='standard-form-row'>
19         <label class="standard-label"><%= t ".tags" %></label>
20         <%= f.text_field :tagstring %>
21         <span class="form-help deemphasize">(<%= t ".tags_help" %>)</span>
22       </div>
23       <div class='standard-form-row'>
24         <label class="standard-label"><%= t ".visibility" %></label>
25         <%= f.select :visibility, [[t("traces.visibility.private"), "private"], [t("traces.visibility.public"), "public"], [t("traces.visibility.trackable"), "trackable"], [t("traces.visibility.identifiable"), "identifiable"]] %>
26         <span class="form-help deemphasize">(<a href="<%= t ".visibility_help_url" %>"><%= t ".visibility_help" %></a>)</span>
27       </div>
28     </fieldset>
29
30     <%= f.submit %>
31     <span class="form-help deemphasize"><a href="<%= t ".help_url" %>"><%= t ".help" %></a></span>
32   </div>
33 <% end %>