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 / app / views / my / .svn / text-base / account.rhtml.svn-base @ 441:cbce1fd3b1b7

History | View | Annotate | Download (1.52 KB)

1
<div class="contextual">
2
<%= link_to(l(:button_change_password), :action => 'password') if @user.change_password_allowed? %>
3
<%= call_hook(:view_my_account_contextual, :user => @user)%>
4
</div>
5
<h2><%=l(:label_my_account)%></h2>
6
<%= error_messages_for 'user' %>
7

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

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

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

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

    
38
<h3><%=l(:label_preferences)%></h3>
39
<div class="box tabular">
40
<%= render :partial => 'users/preferences' %>
41
</div>
42

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

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

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