annotate app/views/my/account.html.erb @ 1115:433d4f72a19b redmine-2.2

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