]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.html.erb
Translated new string introduced in the changeset_browser merge
[rails.git] / app / views / user / account.html.erb
1 <h2><%= t 'user.account.my settings' %></h2>
2 <%= error_messages_for 'user' %>
3 <% form_for :user, @user do |f| %>
4 <table id="accountForm">
5   <tr><td class="fieldName"><%= t 'user.new.display name' %></td><td><%= f.text_field :display_name %></td></tr>
6   <tr><td class="fieldName"><%= t 'user.new.email address' %></td><td><%= f.text_field :email, {:size => 50, :maxlength => 255} %> <span class="minorNote"><%= t 'user.account.email never displayed publicly' %></span></td></tr>
7   <tr><td class="fieldName" style="padding-bottom:0px;"><%= t 'user.new.password' %></td><td style="padding-bottom:0px;"><%= f.password_field :pass_crypt, {:value => '', :size => 30, :maxlength => 255} %></td></tr>
8   <tr><td class="fieldName"><%= t 'user.new.confirm password' %></td><td><%= f.password_field :pass_crypt_confirmation, {:value => '', :size => 30, :maxlength => 255} %></td></tr>
9
10   <tr>
11   <td class="fieldName" valign="top"><%= t 'user.account.public editing.heading' %></td>
12   <td>
13 <% if @user.data_public? %>
14   <%= t 'user.account.public editing.enabled' %> <span class="minorNote">(<a href="<%= t 'user.account.public editing.enabled link' %>" target="_new"><%= t 'user.account.public editing.enabled link text' %></a>)</span>
15 <% else %>
16   <%= t 'user.account.public editing.disabled' %><span class="minorNote">(<a href="#public"><%= t 'user.account.public editing.disabled link text' %></a>)</span>
17 <% end %>
18   </td>
19   </tr>
20
21   <tr><td class="fieldName" valign="top"><%= t 'user.account.profile description' %></td><td><%= f.text_area :description, :rows => '5', :cols => '60' %></td></tr>
22
23   <tr><td class="fieldName" valign="top"><%= t 'user.account.preferred languages' %></td><td><%= f.text_field :languages %></td></tr>
24
25   <tr id="homerow" <% unless @user.home_lat and @user.home_lon %> class="nohome" <%end%> ><td class="fieldName"><%= t 'user.account.home location' %></td><td><em class="message"><%= t 'user.account.no home location' %></em><span class="location"><%= t 'user.account.latitude' %> <%= f.text_field :home_lat, :size => 20, :id => "home_lat" %><%= t 'user.account.longitude' %><%= f.text_field :home_lon, :size => 20, :id => "home_lon" %></span></td></tr>
26
27   <tr><td></td><td>
28   <p><%= t 'user.account.update home location on click' %> <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" /> </p>
29   <div id="map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
30   </td></tr>
31   
32   <tr><td></td><td align=right><br/></br><%= submit_tag t('user.account.save changes button') %></td></tr>
33 </table>
34 <br/>
35
36 <% end %>
37
38 <%= render :partial => 'friend_map' %>
39 <% unless @user.data_public? %>
40 <a name="public"></a>
41 <h2>Public editing</h2>
42   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.
43   <b>Since the 0.6 API changeover, only public users can edit map data</b>. (<a href="http://wiki.openstreetmap.org/wiki/Anonymous_edits">find out why</a>).<br />
44   Your email address will not be revealed by becoming public.<br />
45   This action cannot be reversed and all new users are now public by default.<br />
46   <br /><br />
47   <%= button_to t('user.account.make all my edits public button'), :action => :go_public %>
48 <% end %>
49 <br/>
50 <br/>
51 <%= link_to t('user.account.return to profile'), :controller => 'user', :action => @user.display_name %>
52 <br/>
53 <br/>