X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/54616e9612240e5d93610600ca67a3f0bb0dc5d3..8d2271699bfe8199ebeac2d2bf491e2133cc02d8:/app/views/traces/edit.html.erb diff --git a/app/views/traces/edit.html.erb b/app/views/traces/edit.html.erb index b5600d059..13829727c 100644 --- a/app/views/traces/edit.html.erb +++ b/app/views/traces/edit.html.erb @@ -4,49 +4,16 @@ "picture", :id => @trace.id, :display_name => @trace.user.display_name %>"> -<%= form_for @trace do |f| %> - -
-
-
- -

<%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)

-
-
- -

<%= l @trace.timestamp, :format => :friendly %>

-
- <% if @trace.inserted? %> -
- -

<%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %>

-
-
- -
-
- <%= @trace.latitude %>; - <%= @trace.longitude %> -
- (<%= link_to t(".map"), :controller => "site", :action => "index", :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>) - <% end %> -
- -

<%= link_to @trace.user.display_name, user_path(@trace.user) %>

-
-
- - <%= f.text_field :description %> -
-
- - <%= f.text_field :tagstring %> (<%= t ".tags_help" %>) -
-
- - <%= f.select :visibility, [[t("traces.visibility.private"), "private"], [t("traces.visibility.public"), "public"], [t("traces.visibility.trackable"), "trackable"], [t("traces.visibility.identifiable"), "identifiable"]] %> ("><%= t ".visibility_help" %>) -
-
- <%= f.submit %> -
+<%= 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 %>