if @user.save
Mailer.deliver_account_information(@user, params[:password]) if params[:send_information]
flash[:notice] = l(:notice_successful_create)
- redirect_to :controller => 'users', :action => 'edit', :id => @user
+ redirect_to(params[:continue] ? {:controller => 'users', :action => 'add'} :
+ {:controller => 'users', :action => 'edit', :id => @user})
+ return
end
end
@auth_sources = AuthSource.find(:all)
<% labelled_tabular_form_for :user, @user, :url => { :action => "add" }, :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) %></p>
+ <p>
+ <%= submit_tag l(:button_create) %>
+ <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
+ </p>
<% end %>