User forms cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7889 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-22 21:43:11 +00:00
parent 6577f37fc3
commit 35e8f0d25d
4 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<% labelled_tabular_form_for :user, @user, :url => { :controller => 'users', :action => "update", :tab => nil }, :html => { :method => :put, :class => nil } do |f| %>
<% form_for @user, :builder => TabularFormBuilder do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<% if @user.active? && email_delivery_enabled? -%>
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>

View File

@ -4,7 +4,7 @@
<%= link_to(l(:button_delete), @user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') if User.current != @user %>
</div>
<h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=h @user.login %></h2>
<h2><%= link_to l(:label_user_plural), users_path %> &#187; <%=h @user.login %></h2>
<%= render_tabs user_settings_tabs %>

View File

@ -1,5 +1,5 @@
<div class="contextual">
<%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add' %>
<%= link_to l(:label_user_new), new_user_path, :class => 'icon icon-add' %>
</div>
<h2><%=l(:label_user_plural)%></h2>

View File

@ -1,6 +1,6 @@
<h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=l(:label_user_new)%></h2>
<h2><%= link_to l(:label_user_plural), users_path %> &#187; <%=l(:label_user_new)%></h2>
<% labelled_tabular_form_for :user, @user, :url => { :action => "create" }, :html => { :class => nil } do |f| %>
<% form_for @user, :builder => TabularFormBuilder do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<% if email_delivery_enabled? %>
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>