@@ -1,47 +1,46 | |||||
1 | <h2><%=l(:label_my_account)%></h2> |
|
1 | <h2><%=l(:label_my_account)%></h2> | |
2 |
|
2 | |||
3 | <p><%=l(:field_login)%>: <strong><%= @user.login %></strong><br /> |
|
3 | <p><%=l(:field_login)%>: <strong><%= @user.login %></strong><br /> | |
4 |
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %> |
|
4 | <%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p> | |
5 | <%=l(:field_updated_on)%>: <%= format_time(@user.updated_on) %></p> |
|
|||
6 |
|
5 | |||
7 | <%= error_messages_for 'user' %> |
|
6 | <%= error_messages_for 'user' %> | |
8 |
|
7 | |||
9 | <div class="box"> |
|
8 | <div class="box"> | |
10 | <h3><%=l(:label_information_plural)%></h3> |
|
9 | <h3><%=l(:label_information_plural)%></h3> | |
11 |
|
10 | |||
12 | <% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %> |
|
11 | <% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %> | |
13 |
|
12 | |||
14 | <p><%= f.text_field :firstname, :required => true %></p> |
|
13 | <p><%= f.text_field :firstname, :required => true %></p> | |
15 | <p><%= f.text_field :lastname, :required => true %></p> |
|
14 | <p><%= f.text_field :lastname, :required => true %></p> | |
16 | <p><%= f.text_field :mail, :required => true, :size => 40 %></p> |
|
15 | <p><%= f.text_field :mail, :required => true, :size => 40 %></p> | |
17 | <p><%= f.select :language, lang_options_for_select %></p> |
|
16 | <p><%= f.select :language, lang_options_for_select %></p> | |
18 | <p><%= f.check_box :mail_notification %></p> |
|
17 | <p><%= f.check_box :mail_notification %></p> | |
19 |
|
18 | |||
20 | <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> |
|
19 | <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> | |
21 | <p><%= pref_fields.check_box :hide_mail %></p> |
|
20 | <p><%= pref_fields.check_box :hide_mail %></p> | |
22 | <% end %> |
|
21 | <% end %> | |
23 |
|
22 | |||
24 | <center><%= submit_tag l(:button_save) %></center> |
|
23 | <center><%= submit_tag l(:button_save) %></center> | |
25 | <% end %> |
|
24 | <% end %> | |
26 | </div> |
|
25 | </div> | |
27 |
|
26 | |||
28 |
|
27 | |||
29 | <% unless @user.auth_source_id %> |
|
28 | <% unless @user.auth_source_id %> | |
30 | <div class="box"> |
|
29 | <div class="box"> | |
31 | <h3><%=l(:field_password)%></h3> |
|
30 | <h3><%=l(:field_password)%></h3> | |
32 |
|
31 | |||
33 | <%= start_form_tag({:action => 'change_password'}, :class => "tabular") %> |
|
32 | <%= start_form_tag({:action => 'change_password'}, :class => "tabular") %> | |
34 |
|
33 | |||
35 | <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> |
|
34 | <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> | |
36 | <%= password_field_tag 'password', nil, :size => 25 %></p> |
|
35 | <%= password_field_tag 'password', nil, :size => 25 %></p> | |
37 |
|
36 | |||
38 | <p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label> |
|
37 | <p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label> | |
39 | <%= password_field_tag 'new_password', nil, :size => 25 %></p> |
|
38 | <%= password_field_tag 'new_password', nil, :size => 25 %></p> | |
40 |
|
39 | |||
41 | <p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> |
|
40 | <p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> | |
42 | <%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p> |
|
41 | <%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p> | |
43 |
|
42 | |||
44 | <center><%= submit_tag l(:button_save) %></center> |
|
43 | <center><%= submit_tag l(:button_save) %></center> | |
45 | <%= end_form_tag %> |
|
44 | <%= end_form_tag %> | |
46 | </div> |
|
45 | </div> | |
47 | <% end %> |
|
46 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now