@@ -1,49 +1,51 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %> |
|
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)%> |
|
3 | <%= call_hook(:view_my_account_contextual, :user => @user)%> | |
4 | </div> |
|
4 | </div> | |
5 |
|
5 | |||
6 | <h2><%=l(:label_my_account)%></h2> |
|
6 | <h2><%=l(:label_my_account)%></h2> | |
7 | <%= error_messages_for 'user' %> |
|
7 | <%= error_messages_for 'user' %> | |
8 |
|
8 | |||
9 |
<% labelled_form_for :user, @user, |
|
9 | <% labelled_form_for :user, @user, | |
10 |
|
|
10 | :url => { :action => "account" }, | |
|
11 | :html => { :id => 'my_account_form', | |||
|
12 | :method => :post } do |f| %> | |||
11 | <div class="splitcontentleft"> |
|
13 | <div class="splitcontentleft"> | |
12 | <fieldset class="box tabular"> |
|
14 | <fieldset class="box tabular"> | |
13 | <legend><%=l(:label_information_plural)%></legend> |
|
15 | <legend><%=l(:label_information_plural)%></legend> | |
14 | <p><%= f.text_field :firstname, :required => true %></p> |
|
16 | <p><%= f.text_field :firstname, :required => true %></p> | |
15 | <p><%= f.text_field :lastname, :required => true %></p> |
|
17 | <p><%= f.text_field :lastname, :required => true %></p> | |
16 | <p><%= f.text_field :mail, :required => true %></p> |
|
18 | <p><%= f.text_field :mail, :required => true %></p> | |
17 | <p><%= f.select :language, lang_options_for_select %></p> |
|
19 | <p><%= f.select :language, lang_options_for_select %></p> | |
18 | <% if Setting.openid? %> |
|
20 | <% if Setting.openid? %> | |
19 | <p><%= f.text_field :identity_url %></p> |
|
21 | <p><%= f.text_field :identity_url %></p> | |
20 | <% end %> |
|
22 | <% end %> | |
21 |
|
23 | |||
22 | <% @user.custom_field_values.select(&:editable?).each do |value| %> |
|
24 | <% @user.custom_field_values.select(&:editable?).each do |value| %> | |
23 | <p><%= custom_field_tag_with_label :user, value %></p> |
|
25 | <p><%= custom_field_tag_with_label :user, value %></p> | |
24 | <% end %> |
|
26 | <% end %> | |
25 | <%= call_hook(:view_my_account, :user => @user, :form => f) %> |
|
27 | <%= call_hook(:view_my_account, :user => @user, :form => f) %> | |
26 | </fieldset> |
|
28 | </fieldset> | |
27 |
|
29 | |||
28 | <%= submit_tag l(:button_save) %> |
|
30 | <%= submit_tag l(:button_save) %> | |
29 | </div> |
|
31 | </div> | |
30 |
|
32 | |||
31 | <div class="splitcontentright"> |
|
33 | <div class="splitcontentright"> | |
32 | <fieldset class="box"> |
|
34 | <fieldset class="box"> | |
33 | <legend><%=l(:field_mail_notification)%></legend> |
|
35 | <legend><%=l(:field_mail_notification)%></legend> | |
34 | <%= render :partial => 'users/mail_notifications' %> |
|
36 | <%= render :partial => 'users/mail_notifications' %> | |
35 | </fieldset> |
|
37 | </fieldset> | |
36 |
|
38 | |||
37 | <fieldset class="box tabular"> |
|
39 | <fieldset class="box tabular"> | |
38 | <legend><%=l(:label_preferences)%></legend> |
|
40 | <legend><%=l(:label_preferences)%></legend> | |
39 | <%= render :partial => 'users/preferences' %> |
|
41 | <%= render :partial => 'users/preferences' %> | |
40 | </fieldset> |
|
42 | </fieldset> | |
41 |
|
43 | |||
42 | </div> |
|
44 | </div> | |
43 | <% end %> |
|
45 | <% end %> | |
44 |
|
46 | |||
45 | <% content_for :sidebar do %> |
|
47 | <% content_for :sidebar do %> | |
46 | <%= render :partial => 'sidebar' %> |
|
48 | <%= render :partial => 'sidebar' %> | |
47 | <% end %> |
|
49 | <% end %> | |
48 |
|
50 | |||
49 | <% html_title(l(:label_my_account)) -%> |
|
51 | <% html_title(l(:label_my_account)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now