diff --git a/redmine/app/views/my/account.rhtml b/redmine/app/views/my/account.rhtml index 58b0867..23b236e 100644 --- a/redmine/app/views/my/account.rhtml +++ b/redmine/app/views/my/account.rhtml @@ -6,34 +6,24 @@ <%= error_messages_for 'user' %> -
-

<%=l(:label_information_plural)%>

- - <%= start_form_tag({:action => 'account'}, :class => "tabular") %> - - -

- <%= text_field 'user', 'firstname' %>

- -

- <%= text_field 'user', 'lastname' %>

- -

- <%= text_field 'user', 'mail', :size => 40 %>

- -

- <%= select("user", "language", lang_options_for_select) %>

- - -

- <%= check_box 'user', 'mail_notification' %>

- -

- <%= check_box 'pref', 'hide_mail' %>

- -
<%= submit_tag l(:button_save) %>
- <%= end_form_tag %> -
+
+

<%=l(:label_information_plural)%>

+ +<% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %> + +

<%= f.text_field :firstname, :required => true %>

+

<%= f.text_field :lastname, :required => true %>

+

<%= f.text_field :mail, :required => true, :size => 40 %>

+

<%= f.select :language, lang_options_for_select %>

+

<%= f.check_box :mail_notification %>

+ +<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> +

<%= pref_fields.check_box :hide_mail %>

+<% end %> + +
<%= submit_tag l(:button_save) %>
+<% end %> +
<% unless @user.auth_source_id %>