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' } do |f| %>
11 <fieldset class="form-row">
12 <label class="standard-label"><%= t 'user.new.display name' %></label>
13 <%= f.text_field :display_name %>
16 <fieldset class="form-row">
17 <label class="standard-label"><%= t 'user.account.current email address' %></label>
18 <input type="email" size="30" disabled value="<%= @user.email %>" />
19 <p class="form-help deemphasize"><%= t 'user.account.email never displayed publicly' %></p>
22 <fieldset class="form-row">
23 <label class="standard-label"><%= t 'user.account.new email address' %></label>
24 <%= f.email_field :new_email %>
25 <p class="form-help deemphasize"><%= t 'user.account.email never displayed publicly' %></p>
28 <fieldset class="form-row">
29 <label class="standard-label"><%= t 'user.new.password' %></label>
30 <%= f.password_field :pass_crypt, {:value => '', :autocomplete => :off} %>
33 <fieldset class="form-row">
34 <label class="standard-label"><%= t 'user.new.confirm password' %></label>
35 <%= f.password_field :pass_crypt_confirmation, {:value => '', :autocomplete => :off} %>
38 <fieldset class="form-row">
39 <label class="standard-label"><%= t 'user.account.openid.openid' %></label>
40 <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %>
41 <p class="form-help deemphasize">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</p>
44 <div class="form-row">
45 <label class="standard-label"><%= t 'user.account.public editing.heading' %></label>
46 <p class="form-help deemphasize">
47 <% if @user.data_public? %>
48 <%= t 'user.account.public editing.enabled' %>
49 (<a href="<%= t 'user.account.public editing.enabled link' %>" target="_new"><%= t 'user.account.public editing.enabled link text' %></a>)
51 <%= t 'user.account.public editing.disabled' %>
52 (<a href="#public"><%= t 'user.account.public editing.disabled link text' %></a>)
57 <fieldset class="form-row">
58 <label class="standard-label"><%= t 'user.account.contributor terms.heading' %></label>
59 <p class="form-help deemphasize">
60 <% if @user.terms_agreed? %>
61 <%= t 'user.account.contributor terms.agreed' %>
62 (<a href="<%= t 'user.account.contributor terms.link' %>" target="_new"><%= t 'user.account.contributor terms.link text' %></a>)
63 <% if @user.consider_pd? %>
64 <%= t 'user.account.contributor terms.agreed_with_pd' %>
67 <%= t 'user.account.contributor terms.not yet agreed' %>
68 <%= link_to t('user.account.contributor terms.review link text'), :controller => 'user', :action => 'terms' %>
73 <fieldset class="form-row">
74 <label class="standard-label"><%= t 'user.account.profile description' %></label>
75 <%= richtext_area :user, :description, :rows => '15', :cols => '80' %>
78 <fieldset class="form-row">
79 <label class="standard-label"><%= t 'user.account.preferred languages' %></label>
80 <%= f.text_field :languages %>
83 <fieldset class="form-row">
84 <label class="standard-label"><%= t 'user.account.preferred editor' %></label>
85 <%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{DEFAULT_EDITOR}.name")), 'default']] + Editors::ALL_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
88 <fieldset class="form-row">
89 <label class="standard-label"><%= t 'user.account.image' %></label>
90 <div class="accountImage">
91 <%= user_image @user %>
92 <fieldset class="accountImage-options">
93 <% if @user.image.file? %>
94 <div class="form-row">
95 <%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %>
96 <%= t 'user.account.keep image' %>
99 <% if @user.image.file? || @user.image_use_gravatar? %>
100 <div class="form-row">
101 <%= radio_button_tag "image_action", "delete" %>
102 <%= t 'user.account.delete image' %>
105 <% if @user.image.file? %>
107 <div class="form-row">
108 <%= radio_button_tag "image_action", "new" %>
109 <%= t 'user.account.replace image' %>
111 <div class="form-row">
112 <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
113 <p class="form-help deemphasize"><%= t 'user.account.image size hint' %></p>
117 <div class="form-row">
118 <%= radio_button_tag "image_action", "new" %>
119 <%= t 'user.account.new image' %>
121 <div class="form-row">
122 <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
123 <p class="form-help deemphasize"><%= t 'user.account.image size hint' %></p>
126 <div class="form-row">
127 <%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %>
128 <%= t 'user.account.gravatar.gravatar' %>
129 <p class="form-help deemphasize">(<a href="<%= t 'user.account.gravatar.link' %>" target="_new"><%= t 'user.account.gravatar.link text' %></a>)</p>
136 <p class="form-help"><%= t 'user.account.home location' %></p>
137 <div id="homerow" <% unless @user.home_lat and @user.home_lon %>class="nohome"<%end%> >
138 <p class="message form-help deemphasize"><%= t 'user.account.no home location' %></p>
139 <div class="location">
140 <label class="standard-label"><%= t 'user.account.latitude' %></label>
141 <%= f.text_field :home_lat, :id => "home_lat" %>
142 <label class="standard-label"><%= t 'user.account.longitude' %></label>
143 <%= f.text_field :home_lon, :id => "home_lon" %>
147 <div class="form-row">
148 <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>
149 <% content_for :head do %>
150 <%= javascript_include_tag "user" %>
152 <%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
156 <%= submit_tag t('user.account.save changes button') %>
159 <% unless @user.data_public? %>
160 <a name="public"></a>
161 <h2><%= t 'user.account.public editing note.heading' %></h2>
162 <%= raw t 'user.account.public editing note.text' %>
163 <%= button_to t('user.account.make edits public button'), :action => :go_public %>