Mercurial > hg > soundsoftware-site
diff app/views/users/new.html.erb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | 94944d00e43c |
children | 433d4f72a19b |
line wrap: on
line diff
--- a/app/views/users/new.html.erb Fri Feb 24 18:36:29 2012 +0000 +++ b/app/views/users/new.html.erb Fri Feb 24 19:09:32 2012 +0000 @@ -1,10 +1,12 @@ -<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| %> - <%= render :partial => 'form', :locals => { :f => f } %> - <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> - <p> - <%= submit_tag l(:button_create) %> - <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> - </p> +<% 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> + <% end %> + <p> + <%= submit_tag l(:button_create) %> + <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> + </p> <% end %>