form_for added in my/account view
git-svn-id: http://redmine.rubyforge.org/svn/trunk@66 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b3be8745b0
commit
eabc04d836
|
@ -6,34 +6,24 @@
|
|||
|
||||
<%= error_messages_for 'user' %>
|
||||
|
||||
<div class="box">
|
||||
<h3><%=l(:label_information_plural)%></h3>
|
||||
<div class="box">
|
||||
<h3><%=l(:label_information_plural)%></h3>
|
||||
|
||||
<% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %>
|
||||
|
||||
<%= start_form_tag({:action => 'account'}, :class => "tabular") %>
|
||||
|
||||
<!--[form:user]-->
|
||||
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
|
||||
<%= text_field 'user', 'firstname' %></p>
|
||||
|
||||
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
|
||||
<%= text_field 'user', 'lastname' %></p>
|
||||
<p><%= f.text_field :firstname, :required => true %></p>
|
||||
<p><%= f.text_field :lastname, :required => true %></p>
|
||||
<p><%= f.text_field :mail, :required => true, :size => 40 %></p>
|
||||
<p><%= f.select :language, lang_options_for_select %></p>
|
||||
<p><%= f.check_box :mail_notification %></p>
|
||||
|
||||
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
|
||||
<%= text_field 'user', 'mail', :size => 40 %></p>
|
||||
|
||||
<p><label for="user_language"><%=l(:field_language)%></label>
|
||||
<%= select("user", "language", lang_options_for_select) %></p>
|
||||
<!--[eoform:user]-->
|
||||
|
||||
<p><label for="user_mail_notification"><%=l(:field_mail_notification)%></label>
|
||||
<%= check_box 'user', 'mail_notification' %></p>
|
||||
<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>
|
||||
<p><%= pref_fields.check_box :hide_mail %></p>
|
||||
<% end %>
|
||||
|
||||
<p><label for="pref_hide_mail"><%=l(:field_hide_mail)%></label>
|
||||
<%= check_box 'pref', 'hide_mail' %></p>
|
||||
|
||||
<center><%= submit_tag l(:button_save) %></center>
|
||||
<%= end_form_tag %>
|
||||
</div>
|
||||
<center><%= submit_tag l(:button_save) %></center>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<% unless @user.auth_source_id %>
|
||||
|
|
Loading…
Reference in New Issue