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 ".upload_gpx" %></label>
12 <%= f.file_field :gpx_file %>
14 <div class='form-row'>
15 <label class="standard-label"><%= t ".description" %></label>
16 <%= f.text_field :description %>
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>
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>
30 <%= submit_tag t(".upload_button") %>
31 <span class="form-help deemphasize"><a href="<%= t ".help_url" %>"><%= t ".help" %></a></span>