Mercurial > hg > soundsoftware-site
diff .svn/pristine/53/53b5f242938d157ff2dae7c897102294dd6da41c.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/53/53b5f242938d157ff2dae7c897102294dd6da41c.svn-base Fri Jun 14 09:02:21 2013 +0100 @@ -0,0 +1,51 @@ +<div class="contextual"> +<%= 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' %> + +<%= labelled_form_for :user, @user, + :url => { :action => "account" }, + :html => { :id => 'my_account_form', + :method => :post } do |f| %> +<div class="splitcontentleft"> +<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) %> +</fieldset> + +<%= submit_tag l(:button_save) %> +</div> + +<div class="splitcontentright"> +<fieldset class="box"> + <legend><%=l(:field_mail_notification)%></legend> + <%= render :partial => 'users/mail_notifications' %> +</fieldset> + +<fieldset class="box tabular"> + <legend><%=l(:label_preferences)%></legend> + <%= render :partial => 'users/preferences' %> +</fieldset> + +</div> +<% end %> + +<% content_for :sidebar do %> +<%= render :partial => 'sidebar' %> +<% end %> + +<% html_title(l(:label_my_account)) -%>