To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / my / account.html.erb @ 918:04114f36670d
History | View | Annotate | Download (2.73 KB)
| 1 |
<%= javascript_include_tag "ssamr_institutions" %>
|
|---|---|
| 2 |
|
| 3 |
<div class="contextual"> |
| 4 |
<%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
|
| 5 |
<%= call_hook(:view_my_account_contextual, :user => @user)%>
|
| 6 |
</div>
|
| 7 |
|
| 8 |
<h2><%=l(:label_my_account)%></h2> |
| 9 |
<%= error_messages_for 'user' %>
|
| 10 |
|
| 11 |
<% form_for :user, @user, :url => { :action => "account" },
|
| 12 |
:builder => TabularFormBuilder,
|
| 13 |
:lang => current_language,
|
| 14 |
:html => { :id => 'my_account_form' } do |f| %>
|
| 15 |
|
| 16 |
|
| 17 |
<div class="splitcontentleft"> |
| 18 |
<fieldset class="box tabular"> |
| 19 |
<legend><%=l(:label_information_plural)%></legend> |
| 20 |
<p><%= f.text_field :firstname, :required => true %></p> |
| 21 |
<p><%= f.text_field :lastname, :required => true %></p> |
| 22 |
<p><%= f.text_field :mail, :required => true %></p> |
| 23 |
<p><%= f.select :language, lang_options_for_select %></p> |
| 24 |
<% if Setting.openid? %>
|
| 25 |
<p><%= f.text_field :identity_url %></p> |
| 26 |
<% end %>
|
| 27 |
|
| 28 |
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
| 29 |
<p><%= custom_field_tag_with_label :user, value %></p> |
| 30 |
<% end %>
|
| 31 |
|
| 32 |
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
| 33 |
</fieldset>
|
| 34 |
|
| 35 |
<h3><%=l(:label_ssamr_details)%></h3> |
| 36 |
<div class="box tabular"> |
| 37 |
<% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %>
|
| 38 |
<p>
|
| 39 |
<%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 25, :required => true, :class => 'wiki-edit' %>
|
| 40 |
</p>
|
| 41 |
|
| 42 |
|
| 43 |
<p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label> |
| 44 |
<nobr>
|
| 45 |
<%= ssamr_user_detail.radio_button :institution_type, true %>
|
| 46 |
<%= ssamr_user_detail.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name, {:selected => @selected_institution_id, :prompt => true} ).gsub('&', '&') %>
|
| 47 |
</nobr>
|
| 48 |
</p>
|
| 49 |
|
| 50 |
<p>
|
| 51 |
<nobr>
|
| 52 |
<%= ssamr_user_detail.radio_button :institution_type, false %> Other:
|
| 53 |
<%= ssamr_user_detail.text_field :other_institution, :size => 19 %>
|
| 54 |
</nobr>
|
| 55 |
</p>
|
| 56 |
<% end %>
|
| 57 |
</div>
|
| 58 |
|
| 59 |
|
| 60 |
<%= submit_tag l(:button_save) %>
|
| 61 |
</div>
|
| 62 |
|
| 63 |
<div class="splitcontentright"> |
| 64 |
<fieldset class="box"> |
| 65 |
<legend><%=l(:field_mail_notification)%></legend> |
| 66 |
<%= render :partial => 'users/mail_notifications' %>
|
| 67 |
</fieldset>
|
| 68 |
|
| 69 |
<fieldset class="box tabular"> |
| 70 |
<legend><%=l(:label_preferences)%></legend> |
| 71 |
<%= render :partial => 'users/preferences' %>
|
| 72 |
</fieldset>
|
| 73 |
|
| 74 |
</div>
|
| 75 |
<% end %>
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
<% content_for :sidebar do %>
|
| 86 |
<%= render :partial => 'sidebar' %>
|
| 87 |
<% end %>
|
| 88 |
|
| 89 |
<% html_title(l(:label_my_account)) -%>
|