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 @ 912:5e80956cc792
History | View | Annotate | Download (2.73 KB)
| 1 | 163:9a5a265e77f0 | luisf | <%= javascript_include_tag "ssamr_institutions" %>
|
|---|---|---|---|
| 2 | |||
| 3 | 0:513646585e45 | Chris | <div class="contextual"> |
| 4 | 909:cbb26bc654de | Chris | <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
|
| 5 | 0:513646585e45 | Chris | <%= call_hook(:view_my_account_contextual, :user => @user)%>
|
| 6 | </div>
|
||
| 7 | 909:cbb26bc654de | Chris | |
| 8 | 0:513646585e45 | Chris | <h2><%=l(:label_my_account)%></h2> |
| 9 | <%= error_messages_for 'user' %>
|
||
| 10 | |||
| 11 | 909:cbb26bc654de | Chris | <% form_for :user, @user, :url => { :action => "account" },
|
| 12 | :builder => TabularFormBuilder,
|
||
| 13 | 0:513646585e45 | Chris | :lang => current_language,
|
| 14 | :html => { :id => 'my_account_form' } do |f| %>
|
||
| 15 | 108:d70a0b926135 | luisf | |
| 16 | |||
| 17 | 0:513646585e45 | Chris | <div class="splitcontentleft"> |
| 18 | 909:cbb26bc654de | Chris | <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 | 0:513646585e45 | Chris | |
| 28 | 909:cbb26bc654de | Chris | <% @user.custom_field_values.select(&:editable?).each do |value| %>
|
| 29 | <p><%= custom_field_tag_with_label :user, value %></p> |
||
| 30 | <% end %>
|
||
| 31 | 108:d70a0b926135 | luisf | |
| 32 | 909:cbb26bc654de | Chris | <%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
| 33 | </fieldset>
|
||
| 34 | 0:513646585e45 | Chris | |
| 35 | 108:d70a0b926135 | luisf | <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 | 163:9a5a265e77f0 | luisf | |
| 42 | |||
| 43 | <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label> |
||
| 44 | 177:dc01516c819d | luisf | <nobr>
|
| 45 | 163:9a5a265e77f0 | luisf | <%= ssamr_user_detail.radio_button :institution_type, true %>
|
| 46 | 183:0d3dd7562e6a | luisf | <%= ssamr_user_detail.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name, {:selected => @selected_institution_id, :prompt => true} ).gsub('&', '&') %>
|
| 47 | 177:dc01516c819d | luisf | </nobr>
|
| 48 | </p>
|
||
| 49 | 163:9a5a265e77f0 | luisf | |
| 50 | <p>
|
||
| 51 | 177:dc01516c819d | luisf | <nobr>
|
| 52 | <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
|
||
| 53 | <%= ssamr_user_detail.text_field :other_institution, :size => 19 %>
|
||
| 54 | </nobr>
|
||
| 55 | 163:9a5a265e77f0 | luisf | </p>
|
| 56 | 108:d70a0b926135 | luisf | <% end %>
|
| 57 | </div>
|
||
| 58 | |||
| 59 | |||
| 60 | 0:513646585e45 | Chris | <%= submit_tag l(:button_save) %>
|
| 61 | </div>
|
||
| 62 | |||
| 63 | <div class="splitcontentright"> |
||
| 64 | 909:cbb26bc654de | Chris | <fieldset class="box"> |
| 65 | <legend><%=l(:field_mail_notification)%></legend> |
||
| 66 | <%= render :partial => 'users/mail_notifications' %>
|
||
| 67 | </fieldset>
|
||
| 68 | 0:513646585e45 | Chris | |
| 69 | 909:cbb26bc654de | Chris | <fieldset class="box tabular"> |
| 70 | <legend><%=l(:label_preferences)%></legend> |
||
| 71 | <%= render :partial => 'users/preferences' %>
|
||
| 72 | </fieldset>
|
||
| 73 | 0:513646585e45 | Chris | |
| 74 | </div>
|
||
| 75 | <% end %>
|
||
| 76 | |||
| 77 | 108:d70a0b926135 | luisf | |
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | 0:513646585e45 | Chris | <% content_for :sidebar do %>
|
| 86 | <%= render :partial => 'sidebar' %>
|
||
| 87 | <% end %>
|
||
| 88 | |||
| 89 | <% html_title(l(:label_my_account)) -%> |