]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.rhtml
Fixed indeterminacy in test.
[rails.git] / app / views / user / account.rhtml
1 <h2>My settings</h2>
2 <%= error_messages_for 'user' %>
3 <% form_for :user, @user do |f| %>
4 <table id="accountForm">
5   <tr><td class="fieldName">Display Name : </td><td><%= f.text_field :display_name %></td></tr>
6   <tr><td class="fieldName">Email : </td><td><%= f.text_field :email, {:size => 50, :maxlength => 255} %> <span class="minorNote">(never displayed publicly)</span></td></tr>
7   <tr><td class="fieldName" style="padding-bottom:0px;">Password : </td><td style="padding-bottom:0px;"><%= f.password_field :pass_crypt, {:value => '', :size => 30, :maxlength => 255} %></td></tr>
8   <tr><td class="fieldName">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">Public editing :</td>
12   <td>
13 <% if @user.data_public? %>
14   Enabled. Not anonymous <span class="minorNote">(<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits" target="_new">what's this?</a>)</span>
15 <% else %>
16   Disabled and anonymous. <span class="minorNote">(<a href="#public">why's this bad?</a>)</span>
17 <% end %>
18   </td>
19   </tr>
20
21   <tr><td class="fieldName" valign="top">Profile Description : </td><td><%= f.text_area :description, :rows => '5', :cols => '60' %><br /><br /></td></tr>
22
23   <tr id="homerow" <% unless @user.home_lat and @user.home_lon %> class="nohome" <%end%> ><td class="fieldName">Home Location : </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>
24
25   <tr><td></td><td>
26   <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>
27   <div id="map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
28   </td></tr>
29   
30   <tr><td></td><td align=right><br/></br><%= submit_tag 'Save Changes' %></td></tr>
31 </table>
32 <br/>
33
34 <% end %>
35
36 <%= render :partial => 'friend_map' %>
37 <% unless @user.data_public? %>
38 <a name="public"></a>
39 <h2>Public editing</h2>
40   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.
41   <b>Since the 0.6 API changeover, only public users can edit map data</b>. (<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">find out why</a>).<br />
42   Your email address will not be revealed by becoming public.<br />
43   This action cannot be reversed and all new users are now public by default.<br />
44   <br /><br />
45   <%= button_to "Make all my edits public", :action => :go_public %>
46 <% end %>
47 <br/>
48 <br/>
49 <%= link_to 'return to profile', :controller => 'user', :action => @user.display_name %>
50 <br/>
51 <br/>