To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 6c / 6cda2c2cd26c7545900827e5478deaa9348538cb.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (1.64 KB)

1
<div class="contextual">
2
<%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
3
<%= call_hook(:view_my_account_contextual, :user => @user)%>
4
</div>
5

    
6
<h2><%=l(:label_my_account)%></h2>
7
<%= error_messages_for 'user' %>
8

    
9
<% form_for :user, @user, :url => { :action => "account" },
10
                          :builder => TabularFormBuilder,
11
                          :lang => current_language,
12
                          :html => { :id => 'my_account_form' } do |f| %>
13
<div class="splitcontentleft">
14
<fieldset class="box tabular">
15
  <legend><%=l(:label_information_plural)%></legend>
16
  <p><%= f.text_field :firstname, :required => true %></p>
17
  <p><%= f.text_field :lastname, :required => true %></p>
18
  <p><%= f.text_field :mail, :required => true %></p>
19
  <p><%= f.select :language, lang_options_for_select %></p>
20
  <% if Setting.openid? %>
21
  <p><%= f.text_field :identity_url  %></p>
22
  <% end %>
23

    
24
  <% @user.custom_field_values.select(&:editable?).each do |value| %>
25
    <p><%= custom_field_tag_with_label :user, value %></p>
26
  <% end %>
27
  <%= call_hook(:view_my_account, :user => @user, :form => f) %>
28
</fieldset>
29

    
30
<%= submit_tag l(:button_save) %>
31
</div>
32

    
33
<div class="splitcontentright">
34
<fieldset class="box">
35
  <legend><%=l(:field_mail_notification)%></legend>
36
  <%= render :partial => 'users/mail_notifications' %>
37
</fieldset>
38

    
39
<fieldset class="box tabular">
40
  <legend><%=l(:label_preferences)%></legend>
41
  <%= render :partial => 'users/preferences' %>
42
</fieldset>
43

    
44
</div>
45
<% end %>
46

    
47
<% content_for :sidebar do %>
48
<%= render :partial => 'sidebar' %>
49
<% end %>
50

    
51
<% html_title(l(:label_my_account)) -%>