@@ -9,30 +9,20 | |||
|
9 | 9 |
|
|
10 | 10 |
|
|
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]--> | |
|
15 | <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label> | |
|
16 | <%= text_field 'user', 'firstname' %></p> | |
|
14 | <p><%= f.text_field :firstname, :required => true %></p> | |
|
15 | <p><%= f.text_field :lastname, :required => true %></p> | |
|
16 | <p><%= f.text_field :mail, :required => true, :size => 40 %></p> | |
|
17 | <p><%= f.select :language, lang_options_for_select %></p> | |
|
18 | <p><%= f.check_box :mail_notification %></p> | |
|
17 | 19 | |
|
18 | <p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label> | |
|
19 | <%= text_field 'user', 'lastname' %></p> | |
|
20 | ||
|
21 | <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label> | |
|
22 | <%= text_field 'user', 'mail', :size => 40 %></p> | |
|
23 | ||
|
24 | <p><label for="user_language"><%=l(:field_language)%></label> | |
|
25 | <%= select("user", "language", lang_options_for_select) %></p> | |
|
26 | <!--[eoform:user]--> | |
|
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> | |
|
20 | <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> | |
|
21 | <p><%= pref_fields.check_box :hide_mail %></p> | |
|
22 | <% end %> | |
|
33 | 23 | |
|
34 | 24 |
|
|
35 |
|
|
|
25 | <% end %> | |
|
36 | 26 |
|
|
37 | 27 | |
|
38 | 28 |
General Comments 0
You need to be logged in to leave comments.
Login now