]> git.openstreetmap.org Git - rails.git/blob - app/views/traces/new.html.erb
Merge pull request #4316 from AntonKhorev/block-reason-max-length
[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                               :help => ".gpx, .tar.gz, .tar.bz2, .tar, .zip, .gpx.gz, .gpx.bz2" %>
8   <%= f.text_field :description, :maxlength => 255 %>
9   <%= f.text_field :tagstring %>
10   <%= f.select :visibility,
11                [[t("traces.visibility.private"), "private"],
12                 [t("traces.visibility.public"), "public"],
13                 [t("traces.visibility.trackable"), "trackable"],
14                 [t("traces.visibility.identifiable"), "identifiable"]],
15                :help => link_to(t(".visibility_help"), t(".visibility_help_url")) %>
16   <%= f.primary %>
17   <%= link_to t(".help"), t(".help_url"), :class => "btn btn-link" %>
18 <% end %>