Chris@0:
Chris@0: <%= link_to(l(:button_change_password), :action => 'password') if @user.change_password_allowed? %> Chris@0: <%= call_hook(:view_my_account_contextual, :user => @user)%> Chris@0:
Chris@0:

<%=l(:label_my_account)%>

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

<%=l(:label_information_plural)%>

Chris@0:
Chris@0:

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

Chris@0:

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

Chris@0:

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

Chris@0:

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

Chris@0: <% if Setting.openid? %> Chris@0:

<%= f.text_field :identity_url %>

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

<%= custom_field_tag_with_label :user, value %>

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

<%=l(:field_mail_notification)%>

Chris@0:
Chris@0: <%= select_tag 'notification_option', options_for_select(@notification_options, @notification_option), Chris@0: :onchange => 'if ($("notification_option").value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %> Chris@0: <% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == 'selected' ? '' : 'display:none;') do %> Chris@0:

<% User.current.projects.each do |project| %> Chris@0:
Chris@0: <% end %>

Chris@0:

<%= l(:text_user_mail_option) %>

Chris@0: <% end %> Chris@0:

Chris@0:
Chris@0: Chris@0:

<%=l(:label_preferences)%>

Chris@0:
Chris@0: <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> Chris@0:

<%= pref_fields.check_box :hide_mail %>

Chris@0:

<%= pref_fields.select :time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %>

Chris@0:

<%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %>

Chris@0: <% end %> Chris@0:
Chris@0: Chris@0:
Chris@0: <% end %> Chris@0: Chris@0: <% content_for :sidebar do %> Chris@0: <%= render :partial => 'sidebar' %> Chris@0: <% end %> Chris@0: Chris@0: <% html_title(l(:label_my_account)) -%>