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:
parent
6577f37fc3
commit
35e8f0d25d
|
@ -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>
|
||||
|
|
|
@ -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' %> » <%=h @user.login %></h2>
|
||||
<h2><%= link_to l(:label_user_plural), users_path %> » <%=h @user.login %></h2>
|
||||
|
||||
<%= render_tabs user_settings_tabs %>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> » <%=l(:label_user_new)%></h2>
|
||||
<h2><%= link_to l(:label_user_plural), users_path %> » <%=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>
|
||||
|
|
Loading…
Reference in New Issue