1 <% content_for :heading do %>
2 <h2><%= t 'user.account.my settings' %></h2>
3 <ul class='secondary-actions clearfix'>
4 <li><%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => @user.display_name %></li>
5 <li><%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %></li>
9 <%= error_messages_for 'user' %>
10 <%= form_for :user, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %>
12 <div class="form-row">
13 <label class="standard-label"><%= t 'user.new.display name' %></label>
14 <%= f.text_field :display_name %>
19 <div class="form-row">
20 <label class="standard-label"><%= t 'user.account.current email address' %></label>
21 <input type="email" disabled value="<%= @user.email %>" />
22 <span class="form-help deemphasize"><%= t 'user.account.email never displayed publicly' %></span>
25 <div class="form-row">
26 <label class="standard-label"><%= t 'user.account.new email address' %></label>
27 <%= f.email_field :new_email, :autocomplete => :off %>
28 <span class="form-help deemphasize"><%= t 'user.account.email never displayed publicly' %></span>
33 <div class="form-row">
34 <label class="standard-label"><%= t 'user.new.password' %></label>
35 <%= f.password_field :pass_crypt, {:value => '', :autocomplete => :off} %>
38 <div class="form-row">
39 <label class="standard-label"><%= t 'user.new.confirm password' %></label>
40 <%= f.password_field :pass_crypt_confirmation, {:value => '', :autocomplete => :off} %>
45 <div class="form-row">
46 <label class="standard-label"><%= t 'user.account.openid.openid' %></label>
47 <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %>
48 <span class="form-help deemphasize">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
52 <fieldset class="form-divider">
53 <div class="form-row">
54 <label class="standard-label"><%= t 'user.account.public editing.heading' %></label>
55 <span class="form-help deemphasize">
56 <% if @user.data_public? %>
57 <%= t 'user.account.public editing.enabled' %>
58 (<a href="<%= t 'user.account.public editing.enabled link' %>" target="_new"><%= t 'user.account.public editing.enabled link text' %></a>)
60 <%= t 'user.account.public editing.disabled' %>
61 (<a href="#public"><%= t 'user.account.public editing.disabled link text' %></a>)
66 <div class="form-row">
67 <label class="standard-label"><%= t 'user.account.contributor terms.heading' %></label>
68 <span class="form-help deemphasize">
69 <% if @user.terms_agreed? %>
70 <%= t 'user.account.contributor terms.agreed' %>
71 (<a href="<%= t 'user.account.contributor terms.link' %>" target="_new"><%= t 'user.account.contributor terms.link text' %></a>)
72 <% if @user.consider_pd? %>
73 <%= t 'user.account.contributor terms.agreed_with_pd' %>
76 <%= t 'user.account.contributor terms.not yet agreed' %>
77 <%= link_to t('user.account.contributor terms.review link text'), :controller => 'user', :action => 'terms' %>
81 <div class="form-row">
82 <label class="standard-label"><%= t 'user.account.preferred editor' %></label>
83 <%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{DEFAULT_EDITOR}.name")), 'default']] + Editors::ALL_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
87 <fieldset class="form-divider">
88 <div class='form-row'>
89 <label class="standard-label"><%= t 'user.account.profile description' %></label>
90 <%= richtext_area :user, :description %>
93 <div class="form-row">
94 <label class="standard-label"><%= t 'user.account.preferred languages' %></label>
95 <%= f.text_field :languages %>
98 <div class='form-row accountImage'>
99 <label class="standard-label"><%= t 'user.account.image' %></label>
100 <%= user_image @user %>
101 <ul class='form-list accountImage-options'>
102 <% if @user.image.file? %>
104 <%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %>
105 <label class='standard-label' for='image_action_keep'><%= t 'user.account.keep image' %></label>
108 <% if @user.image.file? || @user.image_use_gravatar? %>
110 <%= radio_button_tag "image_action", "delete" %>
111 <label class='standard-label' for='image_action_delete'><%= t 'user.account.delete image' %></label>
114 <% if @user.image.file? %>
116 <%= radio_button_tag "image_action", "new" %>
117 <label class='standard-label' for='image_action_new'>
118 <%= t 'user.account.replace image' %>
119 <span class="form-help deemphasize"><%= t 'user.account.image size hint' %></span>
121 <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
125 <%= radio_button_tag "image_action", "new" %>
126 <label class='standard-label' for='image_action_new'>
127 <%= t 'user.account.new image' %>
128 <span class="form-help deemphasize"><%= t 'user.account.image size hint' %></span>
130 <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
134 <%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %>
135 <label class='standard-label' for='image_action_gravatar'>
136 <%= t 'user.account.gravatar.gravatar' %>
137 <span class='form-help deemphasize'> (<a href="<%= t 'user.account.gravatar.link' %>" target="_new"><%= t 'user.account.gravatar.link text' %></a>)</span>
144 <fieldset class="form-divider">
145 <div class='form-row location clearfix'>
146 <label class="standard-label"><%= t 'user.account.home location' %></label>
147 <div id="homerow" <% unless @user.home_lat and @user.home_lon %>class="nohome"<%end%> >
148 <p class="message form-help deemphasize"><%= t 'user.account.no home location' %></p>
149 <div class='form-column'>
150 <label class="standard-label secondary"><%= t 'user.account.latitude' %></label>
151 <%= f.text_field :home_lat, :id => "home_lat" %>
153 <div class='form-column'>
154 <label class="standard-label secondary"><%= t 'user.account.longitude' %></label>
155 <%= f.text_field :home_lon, :id => "home_lon" %>
160 <div class="form-row">
161 <input type="checkbox" name="updatehome" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" />
162 <label class="standard-label" for="updatehome"><%= t 'user.account.update home location on click' %></label>
164 <% content_for :head do %>
165 <%= javascript_include_tag "user" %>
167 <%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
170 <%= submit_tag t('user.account.save changes button') %>
173 <% unless @user.data_public? %>
174 <a name="public"></a>
175 <h2><%= t 'user.account.public editing note.heading' %></h2>
176 <%= raw t 'user.account.public editing note.text' %>
177 <%= button_to t('user.account.make edits public button'), :action => :go_public %>