]> git.openstreetmap.org Git - rails.git/blob - app/views/traces/new.html.erb
Merge remote-tracking branch 'upstream/pull/4747'
[rails.git] / app / views / traces / new.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".upload_trace" %></h1>
3 <% end %>
4
5 <%= bootstrap_form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
6   <%= f.file_field :gpx_file, :placeholder => t("helpers.file.prompt") %>
7   <%= f.text_field :description, :maxlength => 255 %>
8   <%= f.text_field :tagstring %>
9   <%= f.select :visibility,
10                [[t("traces.visibility.private"), "private"],
11                 [t("traces.visibility.public"), "public"],
12                 [t("traces.visibility.trackable"), "trackable"],
13                 [t("traces.visibility.identifiable"), "identifiable"]],
14                :help => link_to(t(".visibility_help"), t(".visibility_help_url")) %>
15   <%= f.primary %>
16   <%= link_to t(".help"), t(".help_url"), :class => "btn btn-link" %>
17 <% end %>