To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / account / register.html.erb @ 1298:4f746d8966dd

History | View | Annotate | Download (2.28 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
<%= labelled_form_for @user, :url => register_path do |f| %>
7
<%= error_messages_for 'user' %>
8

    
9
<div class="box tabular">
10
<% if @user.auth_source_id.nil? %>
11
  <p><%= f.text_field :login, :size => 25, :required => true %></p>
12

    
13
  <p><%= f.password_field :password, :size => 25, :required => true %>
14
  <em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
15

    
16
  <p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p>
17
<% end %>
18

    
19
<p><%= f.text_field :firstname, :required => true %></p>
20
<p><%= f.text_field :lastname, :required => true %></p>
21
<p><%= f.text_field :mail, :required => true %></p>
22

    
23
<!-- We only support English in this site 
24
<p><%= f.select :language, lang_options_for_select %></p>
25
-->
26
    
27
<%= labelled_fields_for :ssamr_user_details, @ssamr_user_details do |fields| %>
28
<h3><%=l(:label_ssamr_details)%></h3>
29
 
30
<p>
31
  <%= fields.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %>
32
  <em> <%=l(:text_user_ssamr_description_info).html_safe%></em>
33
</p>
34

    
35
<p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
36
  <%= fields.radio_button :institution_type, true %>
37
  <%= fields.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name,  {:selected => @selected_institution_id, :prompt => true}).gsub('&amp;', '&').html_safe  %>
38
</p>
39

    
40
<p>
41
  <%= fields.radio_button :institution_type, false %> Other:
42
  <%= fields.text_field(:other_institution) %>
43
</p>
44
<% end %>
45
      
46

    
47
<% if Setting.openid? %>
48
  <p><%= f.text_field :identity_url  %></p>
49
<% end %>
50

    
51
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
52
  <p><%= custom_field_tag_with_label :user, value %></p>
53
<% end %>
54
</div>
55

    
56
<%= 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"}) %>.
57
<br />
58
<br />
59

    
60
<%= submit_tag l(:button_submit) %>
61
<% end %>
62