@@ -6,34 +6,24 | |||||
6 |
|
6 | |||
7 | <%= error_messages_for 'user' %> |
|
7 | <%= error_messages_for 'user' %> | |
8 |
|
8 | |||
9 |
|
|
9 | <div class="box"> | |
10 |
|
|
10 | <h3><%=l(:label_information_plural)%></h3> | |
11 |
|
11 | |||
12 | <%= start_form_tag({:action => 'account'}, :class => "tabular") %> |
|
12 | <% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %> | |
13 |
|
13 | |||
14 | <!--[form:user]--> |
|
14 | <p><%= f.text_field :firstname, :required => true %></p> | |
15 | <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label> |
|
15 | <p><%= f.text_field :lastname, :required => true %></p> | |
16 | <%= text_field 'user', 'firstname' %></p> |
|
16 | <p><%= f.text_field :mail, :required => true, :size => 40 %></p> | |
17 |
|
17 | <p><%= f.select :language, lang_options_for_select %></p> | ||
18 | <p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label> |
|
18 | <p><%= f.check_box :mail_notification %></p> | |
19 | <%= text_field 'user', 'lastname' %></p> |
|
19 | ||
20 |
|
20 | <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> | ||
21 | <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label> |
|
21 | <p><%= pref_fields.check_box :hide_mail %></p> | |
22 | <%= text_field 'user', 'mail', :size => 40 %></p> |
|
22 | <% end %> | |
23 |
|
23 | |||
24 | <p><label for="user_language"><%=l(:field_language)%></label> |
|
24 | <center><%= submit_tag l(:button_save) %></center> | |
25 | <%= select("user", "language", lang_options_for_select) %></p> |
|
25 | <% end %> | |
26 | <!--[eoform:user]--> |
|
26 | </div> | |
27 |
|
||||
28 | <p><label for="user_mail_notification"><%=l(:field_mail_notification)%></label> |
|
|||
29 | <%= check_box 'user', 'mail_notification' %></p> |
|
|||
30 |
|
||||
31 | <p><label for="pref_hide_mail"><%=l(:field_hide_mail)%></label> |
|
|||
32 | <%= check_box 'pref', 'hide_mail' %></p> |
|
|||
33 |
|
||||
34 | <center><%= submit_tag l(:button_save) %></center> |
|
|||
35 | <%= end_form_tag %> |
|
|||
36 | </div> |
|
|||
37 |
|
27 | |||
38 |
|
28 | |||
39 | <% unless @user.auth_source_id %> |
|
29 | <% unless @user.auth_source_id %> |
General Comments 0
You need to be logged in to leave comments.
Login now