To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 53 / 53b5f242938d157ff2dae7c897102294dd6da41c.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.61 KB)
| 1 | 1296:038ba2d95de8 | Chris | <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 | <%= labelled_form_for :user, @user, |
||
| 10 | :url => { :action => "account" },
|
||
| 11 | :html => { :id => 'my_account_form',
|
||
| 12 | :method => :post } 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)) -%> |