@@ -1,7 +1,7 | |||
|
1 | 1 | <%= error_messages_for 'user' %> |
|
2 | 2 | |
|
3 | 3 | <!--[form:user]--> |
|
4 | <div class="box"> | |
|
4 | <div class="box tabular"> | |
|
5 | 5 | <p><%= f.text_field :login, :required => true, :size => 25 %></p> |
|
6 | 6 | <p><%= f.text_field :firstname, :required => true %></p> |
|
7 | 7 | <p><%= f.text_field :lastname, :required => true %></p> |
@@ -19,7 +19,7 | |||
|
19 | 19 | <%= call_hook(:view_users_form, :user => @user, :form => f) %> |
|
20 | 20 | </div> |
|
21 | 21 | |
|
22 | <div class="box"> | |
|
22 | <div class="box tabular"> | |
|
23 | 23 | <h3><%=l(:label_authentication)%></h3> |
|
24 | 24 | <% unless @auth_sources.empty? %> |
|
25 | 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 | 2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
3 | <%= submit_tag l(:button_save) %> | |
|
4 | <% if @user.active? %> | |
|
5 | <%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %> | |
|
6 | <% end %> | |
|
3 | <% if @user.active? -%> | |
|
4 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label> | |
|
5 | <% end -%> | |
|
6 | <p><%= submit_tag l(:button_save) %></p> | |
|
7 | 7 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | 1 | <h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> » <%=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 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | <%= submit_tag l(:button_create) %> | |
|
6 | <%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %> | |
|
5 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> | |
|
6 | <p><%= submit_tag l(:button_create) %></p> | |
|
7 | 7 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now