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 / account / register.html.erb @ 1531:ae8145b28b2b
History | View | Annotate | Download (2.33 KB)
| 1 |
<%= javascript_include_tag "ssamr_institutions" %>
|
|---|---|
| 2 |
<%= javascript_include_tag "ssamr_registration" %>
|
| 3 |
|
| 4 |
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2> |
| 5 |
|
| 6 |
<%= l(:text_who_can_register).html_safe %>
|
| 7 |
|
| 8 |
<%= labelled_form_for @user, :url => register_path do |f| %>
|
| 9 |
<%= error_messages_for 'user' %>
|
| 10 |
|
| 11 |
<div class="box tabular"> |
| 12 |
<% if @user.auth_source_id.nil? %>
|
| 13 |
<p><%= f.text_field :login, :size => 25, :required => true %></p> |
| 14 |
|
| 15 |
<p><%= f.password_field :password, :size => 25, :required => true %> |
| 16 |
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p> |
| 17 |
|
| 18 |
<p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p> |
| 19 |
<% end %>
|
| 20 |
|
| 21 |
<p><%= f.text_field :firstname, :required => true %></p> |
| 22 |
<p><%= f.text_field :lastname, :required => true %></p> |
| 23 |
<p><%= f.text_field :mail, :required => true %></p> |
| 24 |
|
| 25 |
<!-- We only support English in this site
|
| 26 |
<p><%= f.select :language, lang_options_for_select %></p> |
| 27 |
-->
|
| 28 |
|
| 29 |
<%= labelled_fields_for :ssamr_user_details, @ssamr_user_details do |fields| %>
|
| 30 |
<h3><%=l(:label_ssamr_details)%></h3> |
| 31 |
|
| 32 |
<p>
|
| 33 |
<%= fields.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %>
|
| 34 |
<em> <%=l(:text_user_ssamr_description_info).html_safe%></em> |
| 35 |
</p>
|
| 36 |
|
| 37 |
<p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label> |
| 38 |
<%= fields.radio_button :institution_type, true, :checked => true %>
|
| 39 |
<%= fields.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name, {:selected => @selected_institution_id, :prompt => true}).gsub('&', '&').html_safe %>
|
| 40 |
</p>
|
| 41 |
|
| 42 |
<p>
|
| 43 |
<%= fields.radio_button :institution_type, false %> Other:
|
| 44 |
<%= fields.text_field(:other_institution) %>
|
| 45 |
</p>
|
| 46 |
<% end %>
|
| 47 |
|
| 48 |
|
| 49 |
<% if Setting.openid? %>
|
| 50 |
<p><%= f.text_field :identity_url %></p> |
| 51 |
<% end %>
|
| 52 |
|
| 53 |
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
|
| 54 |
<p><%= custom_field_tag_with_label :user, value %></p> |
| 55 |
<% end %>
|
| 56 |
</div>
|
| 57 |
|
| 58 |
<%= check_box :user, :terms_and_conditions %> <%= l(:accept_terms_and_conditions) %> <%= link_to("Terms and Conditions", "https://code.soundsoftware.ac.uk/projects/soundsoftware-site/wiki/TandCs", {:target => "_blank"}) %>. |
| 59 |
<br /> |
| 60 |
<br /> |
| 61 |
|
| 62 |
<%= submit_tag l(:button_submit) %>
|
| 63 |
<% end %>
|
| 64 |
|