]> git.openstreetmap.org Git - rails.git/blob - app/views/trace/create.html.erb
Improve layout and styling of forms
[rails.git] / app / views / trace / create.html.erb
1 <% content_for :heading do %>
2   <h1><%= t'trace.create.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'trace.trace_form.upload_gpx' %></label>
12         <%= f.file_field :gpx_file %>
13       </div>
14       <div class='form-row'>
15         <label class="standard-label"><%= t'trace.trace_form.description' %></label>
16         <%= f.text_field :description %>
17       </div>
18       <div class='form-row'>
19         <label class="standard-label"><%= t'trace.trace_form.tags' %></label>
20         <%= f.text_field :tagstring %>
21         <span class="form-help deemphasize">(<%= t'trace.trace_form.tags_help' %>)</span>
22       </div>
23       <div class='form-row'>
24         <label class="standard-label"><%= t'trace.trace_form.visibility' %></label>
25         <%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %>
26         <span class="form-help deemphasize">(<a href="<%= t'trace.trace_form.visibility_help_url' %>"><%= t'trace.trace_form.visibility_help' %></a>)</span>
27       </div>
28     </fieldset>
29
30     <%= submit_tag t('trace.trace_form.upload_button') %>
31     <span class="form-help deemphasize"><a href="<%= t'trace.trace_form.help_url' %>"><%= t'trace.trace_form.help' %></a></span>
32   </div>
33 <% end %>