##// END OF EJS Templates
Replaced h3+div with fieldsets on my account and user form....
Jean-Philippe Lang -
r6045:c19e3e0627d6
parent child
Show More
@@ -2,16 +2,16
2 2 <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
3 3 <%= call_hook(:view_my_account_contextual, :user => @user)%>
4 4 </div>
5
5 6 <h2><%=l(:label_my_account)%></h2>
6 <%= error_messages_for 'user' %>
7 7
8 8 <% form_for :user, @user, :url => { :action => "account" },
9 9 :builder => TabularFormBuilder,
10 10 :lang => current_language,
11 11 :html => { :id => 'my_account_form' } do |f| %>
12 12 <div class="splitcontentleft">
13 <h3><%=l(:label_information_plural)%></h3>
14 <div class="box tabular">
13 <fieldset class="box tabular">
14 <legend><%=l(:label_information_plural)%></legend>
15 15 <p><%= f.text_field :firstname, :required => true %></p>
16 16 <p><%= f.text_field :lastname, :required => true %></p>
17 17 <p><%= f.text_field :mail, :required => true %></p>
@@ -24,21 +24,21
24 24 <p><%= custom_field_tag_with_label :user, value %></p>
25 25 <% end %>
26 26 <%= call_hook(:view_my_account, :user => @user, :form => f) %>
27 </div>
27 </fieldset>
28 28
29 29 <%= submit_tag l(:button_save) %>
30 30 </div>
31 31
32 32 <div class="splitcontentright">
33 <h3><%=l(:field_mail_notification)%></h3>
34 <div class="box">
33 <fieldset class="box">
34 <legend><%=l(:field_mail_notification)%></legend>
35 35 <%= render :partial => 'users/mail_notifications' %>
36 </div>
36 </fieldset>
37 37
38 <h3><%=l(:label_preferences)%></h3>
39 <div class="box tabular">
38 <fieldset class="box tabular">
39 <legend><%=l(:label_preferences)%></legend>
40 40 <%= render :partial => 'users/preferences' %>
41 </div>
41 </fieldset>
42 42
43 43 </div>
44 44 <% end %>
@@ -3,8 +3,8
3 3 <div id="user_form">
4 4 <!--[form:user]-->
5 5 <div class="splitcontentleft">
6 <h3><%=l(:label_information_plural)%></h3>
7 <div class="box tabular">
6 <fieldset class="box tabular">
7 <legend><%=l(:label_information_plural)%></legend>
8 8 <p><%= f.text_field :login, :required => true, :size => 25 %></p>
9 9 <p><%= f.text_field :firstname, :required => true %></p>
10 10 <p><%= f.text_field :lastname, :required => true %></p>
@@ -20,10 +20,10
20 20
21 21 <p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
22 22 <%= call_hook(:view_users_form, :user => @user, :form => f) %>
23 </div>
23 </fieldset>
24 24
25 <h3><%=l(:label_authentication)%></h3>
26 <div class="box tabular">
25 <fieldset class="box tabular">
26 <legend><%=l(:label_authentication)%></legend>
27 27 <% unless @auth_sources.empty? %>
28 28 <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>
29 29 <% end %>
@@ -32,19 +32,19
32 32 <em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
33 33 <p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p>
34 34 </div>
35 </div>
35 </fieldset>
36 36 </div>
37 37
38 38 <div class="splitcontentright">
39 <h3><%=l(:field_mail_notification)%></h3>
40 <div class="box">
39 <fieldset class="box">
40 <legend><%=l(:field_mail_notification)%></legend>
41 41 <%= render :partial => 'users/mail_notifications' %>
42 </div>
42 </fieldset>
43 43
44 <h3><%=l(:label_preferences)%></h3>
45 <div class="box tabular">
44 <fieldset class="box tabular">
45 <legend><%=l(:label_preferences)%></legend>
46 46 <%= render :partial => 'users/preferences' %>
47 </div>
47 </fieldset>
48 48 </div>
49 49 </div>
50 50 <div style="clear:left;"></div>
General Comments 0
You need to be logged in to leave comments. Login now