]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.html.erb
Localisation updates from http://translatewiki.net
[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, :html => { :multipart => true } do |f| %>
4 <table id="accountForm">
5   <tr>
6     <td class="fieldName"><%= t 'user.new.display name' %></td>
7     <td><%= f.text_field :display_name %></td>
8   </tr>
9
10   <tr>
11     <td class="fieldName" style="padding-bottom:0px;"><%= t 'user.account.current email address' %></td>
12     <td style="padding-bottom:0px;"><%= @user.email %> <span class="minorNote"><%= t 'user.account.email never displayed publicly' %></span></td>
13   </tr>
14
15   <tr>
16     <td class="fieldName"><%= t 'user.account.new email address' %></td>
17     <td><%= f.text_field :new_email, {:size => 50, :maxlength => 255} %> <span class="minorNote"><%= t 'user.account.email never displayed publicly' %></span></td>
18   </tr>
19
20   <tr>
21     <td class="fieldName" style="padding-bottom:0px;"><%= t 'user.new.password' %></td>
22     <td style="padding-bottom:0px;"><%= f.password_field :pass_crypt, {:value => '', :size => 30, :maxlength => 255, :autocomplete => :off} %></td>
23   </tr>
24
25   <tr>
26     <td class="fieldName"><%= t 'user.new.confirm password' %></td>
27     <td><%= f.password_field :pass_crypt_confirmation, {:value => '', :size => 30, :maxlength => 255, :autocomplete => :off} %></td>
28   </tr>
29
30   <tr>
31     <td class="fieldName" valign="top"><%= t 'user.account.public editing.heading' %></td>
32     <td>
33       <% if @user.data_public? %>
34         <%= 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>
35       <% else %>
36         <%= t 'user.account.public editing.disabled' %> <span class="minorNote">(<a href="#public"><%= t 'user.account.public editing.disabled link text' %></a>)</span>
37       <% end %>
38     </td>
39   </tr>
40
41   <tr>
42     <td class="fieldName" valign="top"><%= t 'user.account.contributor terms.heading' %></td>
43     <td>
44       <% if @user.terms_agreed? %>
45         <%= t 'user.account.contributor terms.agreed' %>
46         <span class="minorNote">(<a href="<%= t 'user.account.contributor terms.link' %>" target="_new"><%= t 'user.account.contributor terms.link text' %></a>)</span>
47         <br />
48         <% if @user.consider_pd? %>
49           <%= t 'user.account.contributor terms.agreed_with_pd' %>
50         <% end %>
51       <% else %>
52         <%= t 'user.account.contributor terms.not yet agreed' %> <br />
53
54         <%= link_to t('user.account.contributor terms.review link text'), :controller => 'user', :action => 'terms' %>
55       <% end %>
56     </td>
57   </tr>
58
59   <tr>
60     <td class="fieldName" valign="top"><%= t 'user.account.profile description' %></td>
61     <td><%= f.text_area :description, :rows => '5', :cols => '60' %></td>
62   </tr>
63
64   <tr>
65     <td class="fieldName" valign="top"><%= t 'user.account.preferred languages' %></td>
66     <td><%= f.text_field :languages %></td>
67   </tr>
68
69   <tr>
70     <td class="fieldName" valign="top">
71       <%= t 'user.account.image' %>
72     </td>
73     <td valign="top">
74       <% if @user.image.nil? %>
75         <%= hidden_field_tag "image_action", "new" %>
76         <%= t 'user.account.new image' %><br /><%= file_column_field "user", "image" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span>
77       <% else %>
78         <table id="accountImage">
79           <tr>
80             <td rowspan="3" valign="top"><%= image_tag url_for_file_column(@user, "image"), :class => "user_image" %></td>
81             <td><%= radio_button_tag "image_action", "keep", true %></td>
82             <td><%= t 'user.account.keep image' %></td>
83           </tr>
84           <tr>
85             <td><%= radio_button_tag "image_action", "delete" %></td>
86             <td><%= t 'user.account.delete image' %></td>
87           </tr>
88           <tr>
89             <td><%= radio_button_tag "image_action", "new" %></td>
90             <td><%= t 'user.account.replace image' %><br /><%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span></td>
91           </tr>
92         </table>
93       <% end %>
94     </td>
95   </tr>
96
97   <tr id="homerow" <% unless @user.home_lat and @user.home_lon %> class="nohome" <%end%> >
98     <td class="fieldName"><%= t 'user.account.home location' %></td>
99     <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>
100   </tr>
101
102   <tr>
103     <td></td>
104     <td>
105       <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>
106       <div id="map" class="user_map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
107     </td>
108   </tr>
109   
110   <tr>
111     <td></td>
112     <td align=right><br/><%= submit_tag t('user.account.save changes button') %></td>
113   </tr>
114 </table>
115 <% end %>
116
117 <%= render :partial => 'map' %>
118
119 <% unless @user.data_public? %>
120 <a name="public"></a>
121 <h2><%= t 'user.account.public editing note.heading' %></h2>
122 <%= t 'user.account.public editing note.text' %>
123   <%= button_to t('user.account.make edits public button'), :action => :go_public %>
124 <% end %>
125 <br/>
126 <br/>
127 <%= link_to t('user.account.return to profile'), :controller => 'user', :action => @user.display_name %>
128 <br/>
129 <br/>