]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.rhtml
fixing hard coded images/scripts, so that the site works better when deploy as a...
[rails.git] / app / views / user / account.rhtml
1 <h2>User details</h2>
2 <%= error_messages_for 'user' %>
3 <% form_for :user, @user do |f| %>
4 <table style="width : 100%">
5   <tr><td>Email</td><td><%= f.text_field :email %></td></tr>
6   <tr><td>Mapper since</td><td><%= @user.creation_time %> (<%= time_ago_in_words(@user.creation_time) %> ago)</td></tr>
7   <tr><td>Display Name</td><td><%= f.text_field :display_name %></td></tr>
8   <tr><td>Password</td><td><%= f.password_field :pass_crypt, {:value => '', :size => 50, :maxlength => 255} %></td></tr>
9   <tr><td>Confirm Password</td><td><%= f.password_field :pass_crypt_confirmation, {:value => '', :size => 50, :maxlength => 255} %></td></tr>
10
11   <tr><td valign="top">Description</td><td><%= f.text_area :description, :class => "editDescription" %></td></tr>
12
13   <tr id="homerow" <% unless @user.home_lat and @user.home_lon %> class="nohome" <%end%> ><td>Your home</td><td><em class="message">You have not entered your home location.</em><span class="location">Latitude: <%= f.text_field :home_lat, :size => 20, :id => "home_lat" %> Longitude <%= f.text_field :home_lon, :size => 20, :id => "home_lon" %></span></td></tr>
14
15   <tr><td></td><td>
16   <p>Update home location when I click on the map? <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" /> </p>
17   <div id="map" style="border: 1px solid black; position: relative; width : 90%; height : 400px;"></div>
18   </td></tr>
19 </table>
20 <%= submit_tag 'Save Changes' %>
21 <% end %>
22
23 <%= render :partial => 'friend_map' %>
24
25 <h2>Public editing</h2>
26 <% if @user.data_public? %>
27   All your edits are public.
28 <% else %>
29 Currently your edits are anonymous and people can't send you messages or see your location. To show what you edited and allow people to contact you through the website, click the button below.
30 <b>You will need to do this if you want to use the online editor and it is encouraged</b> (<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">find out why</a>).
31 This action cannot be reversed and all new users are now public by default.
32   <br /><br />
33   <%= button_to "Make all my edits public", :action => :go_public %>
34 <% end %>