Mercurial > hg > soundsoftware-site
diff app/views/my/account.html.erb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | c6c2cbd0afee |
children | 5e80956cc792 433d4f72a19b |
line wrap: on
line diff
--- a/app/views/my/account.html.erb Fri Feb 24 18:36:29 2012 +0000 +++ b/app/views/my/account.html.erb Fri Feb 24 19:09:32 2012 +0000 @@ -1,44 +1,45 @@ <div class="contextual"> -<%= link_to(l(:button_change_password), :action => 'password') if @user.change_password_allowed? %> +<%= 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)%> </div> + <h2><%=l(:label_my_account)%></h2> <%= error_messages_for 'user' %> -<% form_for :user, @user, :url => { :action => "account" }, - :builder => TabularFormBuilder, +<% form_for :user, @user, :url => { :action => "account" }, + :builder => TabularFormBuilder, :lang => current_language, :html => { :id => 'my_account_form' } do |f| %> <div class="splitcontentleft"> -<h3><%=l(:label_information_plural)%></h3> -<div class="box tabular"> -<p><%= f.text_field :firstname, :required => true %></p> -<p><%= f.text_field :lastname, :required => true %></p> -<p><%= f.text_field :mail, :required => true %></p> -<p><%= f.select :language, lang_options_for_select %></p> -<% if Setting.openid? %> -<p><%= f.text_field :identity_url %></p> -<% end %> +<fieldset class="box tabular"> + <legend><%=l(:label_information_plural)%></legend> + <p><%= f.text_field :firstname, :required => true %></p> + <p><%= f.text_field :lastname, :required => true %></p> + <p><%= f.text_field :mail, :required => true %></p> + <p><%= f.select :language, lang_options_for_select %></p> + <% if Setting.openid? %> + <p><%= f.text_field :identity_url %></p> + <% end %> -<% @user.custom_field_values.select(&:editable?).each do |value| %> - <p><%= custom_field_tag_with_label :user, value %></p> -<% end %> -<%= call_hook(:view_my_account, :user => @user, :form => f) %> -</div> + <% @user.custom_field_values.select(&:editable?).each do |value| %> + <p><%= custom_field_tag_with_label :user, value %></p> + <% end %> + <%= call_hook(:view_my_account, :user => @user, :form => f) %> +</fieldset> <%= submit_tag l(:button_save) %> </div> <div class="splitcontentright"> -<h3><%=l(:field_mail_notification)%></h3> -<div class="box"> -<%= render :partial => 'users/mail_notifications' %> -</div> +<fieldset class="box"> + <legend><%=l(:field_mail_notification)%></legend> + <%= render :partial => 'users/mail_notifications' %> +</fieldset> -<h3><%=l(:label_preferences)%></h3> -<div class="box tabular"> -<%= render :partial => 'users/preferences' %> -</div> +<fieldset class="box tabular"> + <legend><%=l(:label_preferences)%></legend> + <%= render :partial => 'users/preferences' %> +</fieldset> </div> <% end %>