1 <% content_for :heading do %>
2 <h2><%= t 'trace.edit.heading', :name => h(@trace.name) %></h2>
5 <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
7 <%= form_for @trace, :url => { :action => "edit" } do |f| %>
9 <div id='edit-trace-form' class='standard-form'>
11 <label><%= t'trace.edit.filename' %></label>
12 <p class='deemphasize'><%= @trace.name %> (<%= link_to t('trace.edit.download'), :controller => 'trace', :action => 'data', :id => @trace.id %>)</p>
15 <label><%= t'trace.edit.uploaded_at' %></label>
16 <p class='deemphasize'><%= l @trace.timestamp, :format => :friendly %></p>
18 <% if @trace.inserted? %>
20 <label><%= t'trace.edit.points' %></label>
21 <p class='deemphasize'><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></p>
23 <label><%= t'trace.edit.start_coord' %></label>
25 <span class="latitude"><%= @trace.latitude %></span>;
26 <span class="longitude"><%= @trace.longitude %></span>
28 (<%=link_to t('trace.edit.map'), :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to t('trace.edit.edit'), :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>)
32 <label><%= t'trace.edit.owner' %></label>
33 <p class='deemphasize'><%= link_to h(@trace.user.display_name), {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %></p>
35 <label><%= t'trace.edit.description' %></label>
36 <%= f.text_field :description %>
39 <label><%= t'trace.edit.tags' %></label>
40 <%= f.text_field :tagstring %> (<%= t'trace.edit.tags_help' %>)
43 <label><%= t'trace.edit.visibility' %></label>
44 <%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %> (<a href="<%= t'trace.edit.visibility_help_url' %>"><%= t'trace.edit.visibility_help' %></a>)
47 <%= submit_tag t'trace.edit.save_button' %>