annotate .svn/pristine/53/53b5f242938d157ff2dae7c897102294dd6da41c.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <div class="contextual">
Chris@1295 2 <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
Chris@1295 3 <%= call_hook(:view_my_account_contextual, :user => @user)%>
Chris@1295 4 </div>
Chris@1295 5
Chris@1295 6 <h2><%=l(:label_my_account)%></h2>
Chris@1295 7 <%= error_messages_for 'user' %>
Chris@1295 8
Chris@1295 9 <%= labelled_form_for :user, @user,
Chris@1295 10 :url => { :action => "account" },
Chris@1295 11 :html => { :id => 'my_account_form',
Chris@1295 12 :method => :post } do |f| %>
Chris@1295 13 <div class="splitcontentleft">
Chris@1295 14 <fieldset class="box tabular">
Chris@1295 15 <legend><%=l(:label_information_plural)%></legend>
Chris@1295 16 <p><%= f.text_field :firstname, :required => true %></p>
Chris@1295 17 <p><%= f.text_field :lastname, :required => true %></p>
Chris@1295 18 <p><%= f.text_field :mail, :required => true %></p>
Chris@1295 19 <p><%= f.select :language, lang_options_for_select %></p>
Chris@1295 20 <% if Setting.openid? %>
Chris@1295 21 <p><%= f.text_field :identity_url %></p>
Chris@1295 22 <% end %>
Chris@1295 23
Chris@1295 24 <% @user.custom_field_values.select(&:editable?).each do |value| %>
Chris@1295 25 <p><%= custom_field_tag_with_label :user, value %></p>
Chris@1295 26 <% end %>
Chris@1295 27 <%= call_hook(:view_my_account, :user => @user, :form => f) %>
Chris@1295 28 </fieldset>
Chris@1295 29
Chris@1295 30 <%= submit_tag l(:button_save) %>
Chris@1295 31 </div>
Chris@1295 32
Chris@1295 33 <div class="splitcontentright">
Chris@1295 34 <fieldset class="box">
Chris@1295 35 <legend><%=l(:field_mail_notification)%></legend>
Chris@1295 36 <%= render :partial => 'users/mail_notifications' %>
Chris@1295 37 </fieldset>
Chris@1295 38
Chris@1295 39 <fieldset class="box tabular">
Chris@1295 40 <legend><%=l(:label_preferences)%></legend>
Chris@1295 41 <%= render :partial => 'users/preferences' %>
Chris@1295 42 </fieldset>
Chris@1295 43
Chris@1295 44 </div>
Chris@1295 45 <% end %>
Chris@1295 46
Chris@1295 47 <% content_for :sidebar do %>
Chris@1295 48 <%= render :partial => 'sidebar' %>
Chris@1295 49 <% end %>
Chris@1295 50
Chris@1295 51 <% html_title(l(:label_my_account)) -%>