1 <% content_for :heading do %>
2 <h1><%= t '.upload_trace' %></h1>
5 <%= error_messages_for 'trace' %>
7 <%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
8 <div class="standard-form">
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 %>
14 <div class='form-row'>
15 <label class="standard-label"><%= t'trace.trace_form.description' %></label>
16 <%= f.text_field :description %>
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>
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>
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>