##// END OF EJS Templates
form_for added in my/account view...
Jean-Philippe Lang -
r64:eabc04d83688
parent child
Show More
@@ -6,34 +6,24
6 6
7 7 <%= error_messages_for 'user' %>
8 8
9 <div class="box">
10 <h3><%=l(:label_information_plural)%></h3>
11
12 <%= start_form_tag({:action => 'account'}, :class => "tabular") %>
13
14 <!--[form:user]-->
15 <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
16 <%= text_field 'user', 'firstname' %></p>
17
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>
33
34 <center><%= submit_tag l(:button_save) %></center>
35 <%= end_form_tag %>
36 </div>
9 <div class="box">
10 <h3><%=l(:label_information_plural)%></h3>
11
12 <% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %>
13
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>
19
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 %>
23
24 <center><%= submit_tag l(:button_save) %></center>
25 <% end %>
26 </div>
37 27
38 28
39 29 <% unless @user.auth_source_id %>
General Comments 0
You need to be logged in to leave comments. Login now