##// END OF EJS Templates
Move checkbox for "Send account information to the user" to be clicked before the "Create" button (#4193)....
Jean-Philippe Lang -
r2923:8c769c546f33
parent child
Show More
@@ -1,7 +1,7
1 <%= error_messages_for 'user' %>
1 <%= error_messages_for 'user' %>
2
2
3 <!--[form:user]-->
3 <!--[form:user]-->
4 <div class="box">
4 <div class="box tabular">
5 <p><%= f.text_field :login, :required => true, :size => 25 %></p>
5 <p><%= f.text_field :login, :required => true, :size => 25 %></p>
6 <p><%= f.text_field :firstname, :required => true %></p>
6 <p><%= f.text_field :firstname, :required => true %></p>
7 <p><%= f.text_field :lastname, :required => true %></p>
7 <p><%= f.text_field :lastname, :required => true %></p>
@@ -19,7 +19,7
19 <%= call_hook(:view_users_form, :user => @user, :form => f) %>
19 <%= call_hook(:view_users_form, :user => @user, :form => f) %>
20 </div>
20 </div>
21
21
22 <div class="box">
22 <div class="box tabular">
23 <h3><%=l(:label_authentication)%></h3>
23 <h3><%=l(:label_authentication)%></h3>
24 <% unless @auth_sources.empty? %>
24 <% unless @auth_sources.empty? %>
25 <p><%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %></p>
25 <p><%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %></p>
@@ -1,7 +1,7
1 <% labelled_tabular_form_for :user, @user, :url => { :controller => 'users', :action => "edit", :tab => nil } do |f| %>
1 <% labelled_tabular_form_for :user, @user, :url => { :controller => 'users', :action => "edit", :tab => nil }, :html => { :class => nil } do |f| %>
2 <%= render :partial => 'form', :locals => { :f => f } %>
2 <%= render :partial => 'form', :locals => { :f => f } %>
3 <%= submit_tag l(:button_save) %>
3 <% if @user.active? -%>
4 <% if @user.active? %>
4 <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label>
5 <%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %>
5 <% end -%>
6 <% end %>
6 <p><%= submit_tag l(:button_save) %></p>
7 <% end %>
7 <% end %>
@@ -1,7 +1,7
1 <h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=l(:label_user_new)%></h2>
1 <h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=l(:label_user_new)%></h2>
2
2
3 <% labelled_tabular_form_for :user, @user, :url => { :action => "add" } do |f| %>
3 <% labelled_tabular_form_for :user, @user, :url => { :action => "add" }, :html => { :class => nil } do |f| %>
4 <%= render :partial => 'form', :locals => { :f => f } %>
4 <%= render :partial => 'form', :locals => { :f => f } %>
5 <%= submit_tag l(:button_create) %>
5 <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
6 <%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %>
6 <p><%= submit_tag l(:button_create) %></p>
7 <% end %>
7 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now