]> git.openstreetmap.org Git - rails.git/blob - app/views/trace/edit.html.erb
Fix browse features buttons
[rails.git] / app / views / trace / edit.html.erb
1 <% content_for :heading do %>
2   <h2><%= t 'trace.edit.heading', :name => h(@trace.name) %></h2>
3 <% end %>
4
5 <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
6
7 <%= form_for @trace, :url => { :action => "edit" } do |f| %>
8
9 <div id='edit-trace-form' class='standard-form'>
10   <fieldset>
11     <div class='form-row'>
12       <label><%= t'trace.edit.filename' %></label>
13       <p class='deemphasize'><%= @trace.name %> (<%= link_to t('trace.edit.download'), :controller => 'trace', :action => 'data', :id => @trace.id %>)</p>
14     </div>
15     <div class='form-row'>
16       <label><%= t'trace.edit.uploaded_at' %></label>
17       <p class='deemphasize'><%= l @trace.timestamp, :format => :friendly %></p>
18     </div>
19   </fieldset>
20
21   <% if @trace.inserted? %>
22
23   <fieldset>
24     <div class='form-row'>
25       <label><%= t'trace.edit.points' %></label>
26       <p class='deemphasize'><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></p>
27     </div>
28     <div class='form-row'>
29       <label><%= t'trace.edit.start_coord' %></label>
30     </div>
31     <div class="geo">
32       <span class="latitude"><%= @trace.latitude %></span>;
33       <span class="longitude"><%= @trace.longitude %></span>
34     </div>
35     (<%=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 %>)
36   </fieldset>
37
38   <% end %>
39
40   <fieldset>
41     <div class='form-row'>
42       <label><%= t'trace.edit.owner' %></label>
43       <p class='deemphasize'><%= link_to h(@trace.user.display_name), {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %></p>
44     </div>
45     <div class='form-row'>
46       <label><%= t'trace.edit.description' %></label>
47       <%= f.text_field :description %>
48     </div>
49     <div class='form-row'>
50       <label><%= t'trace.edit.tags' %></label>
51       <%= f.text_field :tagstring %> (<%= t'trace.edit.tags_help' %>)
52     </div>
53     <div class='form-row'>
54       <label><%= t'trace.edit.visibility' %></label>
55       <%= 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>)
56     </div>
57   </fieldset>
58
59 </div>
60
61 <%= submit_tag t'trace.edit.save_button' %>
62
63 <% end %>