Mercurial > hg > soundsoftware-site
comparison .svn/pristine/f8/f86a81cdf0d42a4930082072d93ee32149d30f4a.svn-base @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
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 <% unless @user.force_default_language? %> | |
20 <p><%= f.select :language, lang_options_for_select %></p> | |
21 <% end %> | |
22 <% if Setting.openid? %> | |
23 <p><%= f.text_field :identity_url %></p> | |
24 <% end %> | |
25 | |
26 <% @user.custom_field_values.select(&:editable?).each do |value| %> | |
27 <p><%= custom_field_tag_with_label :user, value %></p> | |
28 <% end %> | |
29 <%= call_hook(:view_my_account, :user => @user, :form => f) %> | |
30 </fieldset> | |
31 | |
32 <%= submit_tag l(:button_save) %> | |
33 </div> | |
34 | |
35 <div class="splitcontentright"> | |
36 <fieldset class="box"> | |
37 <legend><%=l(:field_mail_notification)%></legend> | |
38 <%= render :partial => 'users/mail_notifications' %> | |
39 </fieldset> | |
40 | |
41 <fieldset class="box tabular"> | |
42 <legend><%=l(:label_preferences)%></legend> | |
43 <%= render :partial => 'users/preferences' %> | |
44 <%= call_hook(:view_my_account_preferences, :user => @user, :form => f) %> | |
45 </fieldset> | |
46 | |
47 </div> | |
48 <% end %> | |
49 | |
50 <% content_for :sidebar do %> | |
51 <%= render :partial => 'sidebar' %> | |
52 <% end %> | |
53 | |
54 <% html_title(l(:label_my_account)) -%> |