2007-10-20 16:47:05 +04:00
|
|
|
<div class="contextual">
|
2010-05-23 07:16:37 +04:00
|
|
|
<%= link_to(l(:button_change_password), :action => 'password') 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>
|
2006-07-29 13:32:58 +04:00
|
|
|
<h2><%=l(:label_my_account)%></h2>
|
2006-07-09 20:30:01 +04:00
|
|
|
<%= error_messages_for 'user' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-12-07 17:57:17 +03:00
|
|
|
<% form_for :user, @user, :url => { :action => "account" },
|
|
|
|
:builder => TabularFormBuilder,
|
|
|
|
:lang => current_language,
|
|
|
|
:html => { :id => 'my_account_form' } do |f| %>
|
2007-10-20 16:47:05 +04:00
|
|
|
<div class="splitcontentleft">
|
2006-12-05 01:02:30 +03:00
|
|
|
<h3><%=l(:label_information_plural)%></h3>
|
2007-10-20 16:47:05 +04:00
|
|
|
<div class="box tabular">
|
2006-12-05 01:02:30 +03:00
|
|
|
<p><%= f.text_field :firstname, :required => true %></p>
|
|
|
|
<p><%= f.text_field :lastname, :required => true %></p>
|
2007-10-20 16:47:05 +04:00
|
|
|
<p><%= f.text_field :mail, :required => true %></p>
|
2006-12-05 01:02:30 +03:00
|
|
|
<p><%= f.select :language, lang_options_for_select %></p>
|
2009-02-12 20:19:32 +03:00
|
|
|
<% if Setting.openid? %>
|
2009-02-11 22:07:07 +03:00
|
|
|
<p><%= f.text_field :identity_url %></p>
|
2009-02-12 20:19:32 +03:00
|
|
|
<% end %>
|
2009-01-17 14:18:04 +03:00
|
|
|
|
|
|
|
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
|
|
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
|
|
|
<% end %>
|
2009-03-21 03:22:59 +03:00
|
|
|
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
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">
|
|
|
|
<h3><%=l(:field_mail_notification)%></h3>
|
|
|
|
<div class="box">
|
2010-09-29 02:13:06 +04:00
|
|
|
<%= render :partial => 'users/mail_notifications' %>
|
2007-10-20 16:47:05 +04:00
|
|
|
</div>
|
2008-03-05 18:41:54 +03:00
|
|
|
|
|
|
|
<h3><%=l(:label_preferences)%></h3>
|
|
|
|
<div class="box tabular">
|
2010-09-29 02:13:06 +04:00
|
|
|
<%= render :partial => 'users/preferences' %>
|
2008-03-05 18:41:54 +03:00
|
|
|
</div>
|
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)) -%>
|