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.rhtml @ 787:a36cce722860

History | View | Annotate | Download (3.25 KB)

1 161:bad82329a115 luisf
<%= javascript_include_tag "ssamr_institutions" %>
2 162:bd3f92477cbb luisf
<%= javascript_include_tag "ssamr_registration" %>
3 161:bad82329a115 luisf
4 0:513646585e45 Chris
<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 64:9d42bcda8cea luisf
9 0:513646585e45 Chris
<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 717:fce7374e48b7 chris
<!-- We only support English in this site
33 0:513646585e45 Chris
<p><label for="user_language"><%=l(:field_language)%></label>
34
<%= select("user", "language", lang_options_for_select) %></p>
35 717:fce7374e48b7 chris
-->
36 55:bbb139d5ca95 luisf
37 60:cf39b52d24b4 luisf
<h3><%=l(:label_ssamr_details)%></h3>
38 65:69ee2e406f71 luisf
39 60:cf39b52d24b4 luisf
                <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %>
40 73:a7fa8dd0446f luisf
                        <p>
41 102:dc252f2ddef5 luisf
                          <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %>
42 73:a7fa8dd0446f luisf
                          <em> <%=l(:text_user_ssamr_description_info)%></em>
43
                        </p>
44 102:dc252f2ddef5 luisf
45 163:9a5a265e77f0 luisf
                        <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
46 177:dc01516c819d luisf
                                                        <%= ssamr_user_detail.radio_button :institution_type, true %>
47 192:d1713ab10813 luis
                                  <%= ssamr_user_detail.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name,  {:selected => @selected_institution_id, :prompt => true}).gsub('&amp;', '&')  %>
48 177:dc01516c819d luisf
                                                </p>
49 146:0f3210a90f46 luisf
50
                        <p>
51 160:7eb2194ee428 luisf
                          <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
52
                          <%= ssamr_user_detail.text_field(:other_institution) %>
53 146:0f3210a90f46 luisf
                        </p>
54 73:a7fa8dd0446f luisf
                <% end %>
55
56 0:513646585e45 Chris
<% if Setting.openid? %>
57
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label>
58
<%= text_field 'user', 'identity_url'  %></p>
59
<% end %>
60
61
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
62
        <p><%= custom_field_tag_with_label :user, value %></p>
63
<% end %>
64
<!--[eoform:user]-->
65
</div>
66
67 192:d1713ab10813 luis
<%= 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"}) %>.
68 190:440c4f4bf2d6 luisf
<br />
69
<br />
70
71 0:513646585e45 Chris
<%= submit_tag l(:button_submit) %>
72
<% end %>