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.rhtml @ 442:753f1380d6bc
History | View | Annotate | Download (3.21 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 |
<% form_tag({:action => 'register'}, :class => "tabular") do %>
|
| 7 |
<%= error_messages_for 'user' %>
|
| 8 |
|
| 9 |
<div class="box"> |
| 10 |
<!--[form:user]-->
|
| 11 |
<% if @user.auth_source_id.nil? %>
|
| 12 |
<p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label> |
| 13 |
<%= text_field 'user', 'login', :size => 25 %></p> |
| 14 |
|
| 15 |
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> |
| 16 |
<%= password_field_tag 'password', nil, :size => 25 %><br /> |
| 17 |
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p> |
| 18 |
|
| 19 |
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> |
| 20 |
<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p> |
| 21 |
<% end %>
|
| 22 |
|
| 23 |
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label> |
| 24 |
<%= text_field 'user', 'firstname' %></p> |
| 25 |
|
| 26 |
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label> |
| 27 |
<%= text_field 'user', 'lastname' %></p> |
| 28 |
|
| 29 |
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label> |
| 30 |
<%= text_field 'user', 'mail' %></p> |
| 31 |
|
| 32 |
<p><label for="user_language"><%=l(:field_language)%></label> |
| 33 |
<%= select("user", "language", lang_options_for_select) %></p> |
| 34 |
|
| 35 |
|
| 36 |
<h3><%=l(:label_ssamr_details)%></h3> |
| 37 |
|
| 38 |
<% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %>
|
| 39 |
<p>
|
| 40 |
<%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %>
|
| 41 |
<em> <%=l(:text_user_ssamr_description_info)%></em> |
| 42 |
</p>
|
| 43 |
|
| 44 |
<p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label> |
| 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 |
</p>
|
| 48 |
|
| 49 |
<p>
|
| 50 |
<%= ssamr_user_detail.radio_button :institution_type, false %> Other:
|
| 51 |
<%= ssamr_user_detail.text_field(:other_institution) %>
|
| 52 |
</p>
|
| 53 |
<% end %>
|
| 54 |
|
| 55 |
<% if Setting.openid? %>
|
| 56 |
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label> |
| 57 |
<%= text_field 'user', 'identity_url' %></p> |
| 58 |
<% end %>
|
| 59 |
|
| 60 |
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
|
| 61 |
<p><%= custom_field_tag_with_label :user, value %></p> |
| 62 |
<% end %>
|
| 63 |
<!--[eoform:user]-->
|
| 64 |
</div>
|
| 65 |
|
| 66 |
<%= 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"}) %>. |
| 67 |
<br /> |
| 68 |
<br /> |
| 69 |
|
| 70 |
<%= submit_tag l(:button_submit) %>
|
| 71 |
<% end %>
|