Mercurial > hg > soundsoftware-site
comparison .svn/pristine/53/53b5f242938d157ff2dae7c897102294dd6da41c.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1295:622f24f53b42 |
---|---|
1 <div class="contextual"> | |
2 <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %> | |
3 <%= call_hook(:view_my_account_contextual, :user => @user)%> | |
4 </div> | |
5 | |
6 <h2><%=l(:label_my_account)%></h2> | |
7 <%= error_messages_for 'user' %> | |
8 | |
9 <%= labelled_form_for :user, @user, | |
10 :url => { :action => "account" }, | |
11 :html => { :id => 'my_account_form', | |
12 :method => :post } do |f| %> | |
13 <div class="splitcontentleft"> | |
14 <fieldset class="box tabular"> | |
15 <legend><%=l(:label_information_plural)%></legend> | |
16 <p><%= f.text_field :firstname, :required => true %></p> | |
17 <p><%= f.text_field :lastname, :required => true %></p> | |
18 <p><%= f.text_field :mail, :required => true %></p> | |
19 <p><%= f.select :language, lang_options_for_select %></p> | |
20 <% if Setting.openid? %> | |
21 <p><%= f.text_field :identity_url %></p> | |
22 <% end %> | |
23 | |
24 <% @user.custom_field_values.select(&:editable?).each do |value| %> | |
25 <p><%= custom_field_tag_with_label :user, value %></p> | |
26 <% end %> | |
27 <%= call_hook(:view_my_account, :user => @user, :form => f) %> | |
28 </fieldset> | |
29 | |
30 <%= submit_tag l(:button_save) %> | |
31 </div> | |
32 | |
33 <div class="splitcontentright"> | |
34 <fieldset class="box"> | |
35 <legend><%=l(:field_mail_notification)%></legend> | |
36 <%= render :partial => 'users/mail_notifications' %> | |
37 </fieldset> | |
38 | |
39 <fieldset class="box tabular"> | |
40 <legend><%=l(:label_preferences)%></legend> | |
41 <%= render :partial => 'users/preferences' %> | |
42 </fieldset> | |
43 | |
44 </div> | |
45 <% end %> | |
46 | |
47 <% content_for :sidebar do %> | |
48 <%= render :partial => 'sidebar' %> | |
49 <% end %> | |
50 | |
51 <% html_title(l(:label_my_account)) -%> |