2007-10-20 16:47:05 +04:00
|
|
|
<div class="contextual">
|
2011-07-03 15:56:27 +04:00
|
|
|
<%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
|
2009-11-25 04:14:19 +03:00
|
|
|
<%= call_hook(:view_my_account_contextual, :user => @user)%>
|
2007-10-20 16:47:05 +04:00
|
|
|
</div>
|
2011-07-03 16:21:37 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<h2><%=l(:label_my_account)%></h2>
|
2011-07-03 16:23:11 +04:00
|
|
|
<%= error_messages_for 'user' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2011-09-14 12:42:01 +04:00
|
|
|
<% form_for :user, @user, :url => { :action => "account" },
|
|
|
|
:builder => TabularFormBuilder,
|
2007-12-07 17:57:17 +03:00
|
|
|
:lang => current_language,
|
|
|
|
:html => { :id => 'my_account_form' } do |f| %>
|
2007-10-20 16:47:05 +04:00
|
|
|
<div class="splitcontentleft">
|
2011-07-03 16:21:37 +04:00
|
|
|
<fieldset class="box tabular">
|
2011-09-17 03:55:26 +04:00
|
|
|
<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) %>
|
2011-07-03 16:21:37 +04:00
|
|
|
</fieldset>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-10-20 16:47:05 +04:00
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
</div>
|
2006-09-02 17:33:23 +04:00
|
|
|
|
2007-10-20 16:47:05 +04:00
|
|
|
<div class="splitcontentright">
|
2011-07-03 16:21:37 +04:00
|
|
|
<fieldset class="box">
|
2011-09-17 03:55:26 +04:00
|
|
|
<legend><%=l(:field_mail_notification)%></legend>
|
|
|
|
<%= render :partial => 'users/mail_notifications' %>
|
2011-07-03 16:21:37 +04:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="box tabular">
|
2011-09-17 03:55:26 +04:00
|
|
|
<legend><%=l(:label_preferences)%></legend>
|
|
|
|
<%= render :partial => 'users/preferences' %>
|
2011-07-03 16:21:37 +04:00
|
|
|
</fieldset>
|
2009-12-23 09:27:28 +03:00
|
|
|
|
2007-10-20 16:47:05 +04:00
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
2007-10-20 16:47:05 +04:00
|
|
|
<%= render :partial => 'sidebar' %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_my_account)) -%>
|