diff --git a/app/views/my/account.rhtml b/app/views/my/account.rhtml index 139ca6b1a..c1579cde6 100644 --- a/app/views/my/account.rhtml +++ b/app/views/my/account.rhtml @@ -2,43 +2,43 @@ <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %> <%= call_hook(:view_my_account_contextual, :user => @user)%> +

<%=l(:label_my_account)%>

-<%= error_messages_for 'user' %> <% form_for :user, @user, :url => { :action => "account" }, :builder => TabularFormBuilder, :lang => current_language, :html => { :id => 'my_account_form' } do |f| %>
-

<%=l(:label_information_plural)%>

-
-

<%= f.text_field :firstname, :required => true %>

-

<%= f.text_field :lastname, :required => true %>

-

<%= f.text_field :mail, :required => true %>

-

<%= f.select :language, lang_options_for_select %>

-<% if Setting.openid? %> -

<%= f.text_field :identity_url %>

-<% end %> - -<% @user.custom_field_values.select(&:editable?).each do |value| %> -

<%= custom_field_tag_with_label :user, value %>

-<% end %> -<%= call_hook(:view_my_account, :user => @user, :form => f) %> -
+
+ <%=l(:label_information_plural)%> +

<%= f.text_field :firstname, :required => true %>

+

<%= f.text_field :lastname, :required => true %>

+

<%= f.text_field :mail, :required => true %>

+

<%= f.select :language, lang_options_for_select %>

+ <% if Setting.openid? %> +

<%= f.text_field :identity_url %>

+ <% end %> + + <% @user.custom_field_values.select(&:editable?).each do |value| %> +

<%= custom_field_tag_with_label :user, value %>

+ <% end %> + <%= call_hook(:view_my_account, :user => @user, :form => f) %> +
<%= submit_tag l(:button_save) %>
-

<%=l(:field_mail_notification)%>

-
-<%= render :partial => 'users/mail_notifications' %> -
+
+ <%=l(:field_mail_notification)%> + <%= render :partial => 'users/mail_notifications' %> +
-

<%=l(:label_preferences)%>

-
-<%= render :partial => 'users/preferences' %> -
+
+ <%=l(:label_preferences)%> + <%= render :partial => 'users/preferences' %> +
<% end %> diff --git a/app/views/users/_form.rhtml b/app/views/users/_form.rhtml index f23635693..4b145bc3d 100644 --- a/app/views/users/_form.rhtml +++ b/app/views/users/_form.rhtml @@ -3,48 +3,48 @@
-

<%=l(:label_information_plural)%>

-
-

<%= f.text_field :login, :required => true, :size => 25 %>

-

<%= f.text_field :firstname, :required => true %>

-

<%= f.text_field :lastname, :required => true %>

-

<%= f.text_field :mail, :required => true %>

-

<%= f.select :language, lang_options_for_select %>

-<% if Setting.openid? %> -

<%= f.text_field :identity_url %>

-<% end %> +
+ <%=l(:label_information_plural)%> +

<%= f.text_field :login, :required => true, :size => 25 %>

+

<%= f.text_field :firstname, :required => true %>

+

<%= f.text_field :lastname, :required => true %>

+

<%= f.text_field :mail, :required => true %>

+

<%= f.select :language, lang_options_for_select %>

+ <% if Setting.openid? %> +

<%= f.text_field :identity_url %>

+ <% end %> + + <% @user.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :user, value %>

+ <% end %> + +

<%= f.check_box :admin, :disabled => (@user == User.current) %>

+ <%= call_hook(:view_users_form, :user => @user, :form => f) %> +
-<% @user.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :user, value %>

-<% end %> - -

<%= f.check_box :admin, :disabled => (@user == User.current) %>

-<%= call_hook(:view_users_form, :user => @user, :form => f) %> -
- -

<%=l(:label_authentication)%>

-
-<% unless @auth_sources.empty? %> -

<%= 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');}" %>

-<% end %> -
-

<%= f.password_field :password, :required => true, :size => 25 %>
-<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

-

<%= f.password_field :password_confirmation, :required => true, :size => 25 %>

-
-
+
+ <%=l(:label_authentication)%> + <% unless @auth_sources.empty? %> +

<%= 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');}" %>

+ <% end %> +
+

<%= f.password_field :password, :required => true, :size => 25 %>
+ <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

+

<%= f.password_field :password_confirmation, :required => true, :size => 25 %>

+
+
-

<%=l(:field_mail_notification)%>

-
-<%= render :partial => 'users/mail_notifications' %> -
+
+ <%=l(:field_mail_notification)%> + <%= render :partial => 'users/mail_notifications' %> +
-

<%=l(:label_preferences)%>

-
-<%= render :partial => 'users/preferences' %> -
+
+ <%=l(:label_preferences)%> + <%= render :partial => 'users/preferences' %> +