]> git.openstreetmap.org Git - rails.git/blob - app/views/traces/create.html.erb
Update style for change of name for message controller
[rails.git] / app / views / traces / create.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='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='form-row'>
15         <label class="standard-label"><%= t '.description' %></label>
16         <%= f.text_field :description %>
17       </div>
18       <div class='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='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     <%= submit_tag t('.upload_button') %>
31     <span class="form-help deemphasize"><a href="<%= t '.help_url' %>"><%= t '.help' %></a></span>
32   </div>
33 <% end %>