openstreetmap-website/app/views/traces/edit.html.erb
Andy Allan 8d2271699b Use bootstrap_form as the formbuilder for GPX upload form
This also uses the recommended bs-custom-file-input javascript plugin
for the file input control.
2020-07-01 17:23:02 +02:00

19 lines
877 B
Text

<% content_for :heading do %>
<h2><%= t ".heading", :name => @trace.name %></h2>
<% end %>
<img src="<%= url_for :controller => "traces", :action => "picture", :id => @trace.id, :display_name => @trace.user.display_name %>">
<%= bootstrap_form_for @trace do |f| %>
<%= f.text_field :name, :disabled => true %>
<%= f.text_field :description %>
<%= f.text_field :tagstring %>
<%= f.select :visibility,
[[t("traces.visibility.private"), "private"],
[t("traces.visibility.public"), "public"],
[t("traces.visibility.trackable"), "trackable"],
[t("traces.visibility.identifiable"), "identifiable"]],
:help => link_to(t(".visibility_help"), t(".visibility_help_url")) %>
<%= f.primary %>
<%= link_to t(".cancel"), show_trace_path(@trace.user, @trace), :class => "btn btn-link" %>
<% end %>