@@ -1,44 +1,44 | |||||
1 | <h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2> |
|
1 | <h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2> | |
2 |
|
2 | |||
3 | <% form_tag({:action => 'register'}, :class => "tabular") do %> |
|
3 | <% form_tag({:action => 'register'}, :class => "tabular") do %> | |
4 | <%= error_messages_for 'user' %> |
|
4 | <%= error_messages_for 'user' %> | |
5 |
|
5 | |||
6 | <div class="box"> |
|
6 | <div class="box"> | |
7 | <!--[form:user]--> |
|
7 | <!--[form:user]--> | |
8 | <% if @user.auth_source_id.nil? %> |
|
8 | <% if @user.auth_source_id.nil? %> | |
9 | <p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label> |
|
9 | <p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label> | |
10 | <%= text_field 'user', 'login', :size => 25 %></p> |
|
10 | <%= text_field 'user', 'login', :size => 25 %></p> | |
11 |
|
11 | |||
12 | <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> |
|
12 | <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> | |
13 | <%= password_field_tag 'password', nil, :size => 25 %><br /> |
|
13 | <%= password_field_tag 'password', nil, :size => 25 %><br /> | |
14 | <em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p> |
|
14 | <em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p> | |
15 |
|
15 | |||
16 | <p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> |
|
16 | <p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> | |
17 | <%= password_field_tag 'password_confirmation', nil, :size => 25 %></p> |
|
17 | <%= password_field_tag 'password_confirmation', nil, :size => 25 %></p> | |
18 | <% end %> |
|
18 | <% end %> | |
19 |
|
19 | |||
20 | <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label> |
|
20 | <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label> | |
21 | <%= text_field 'user', 'firstname' %></p> |
|
21 | <%= text_field 'user', 'firstname' %></p> | |
22 |
|
22 | |||
23 | <p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label> |
|
23 | <p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label> | |
24 | <%= text_field 'user', 'lastname' %></p> |
|
24 | <%= text_field 'user', 'lastname' %></p> | |
25 |
|
25 | |||
26 | <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label> |
|
26 | <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label> | |
27 | <%= text_field 'user', 'mail' %></p> |
|
27 | <%= text_field 'user', 'mail' %></p> | |
28 |
|
28 | |||
29 | <p><label for="user_language"><%=l(:field_language)%></label> |
|
29 | <p><label for="user_language"><%=l(:field_language)%></label> | |
30 | <%= select("user", "language", lang_options_for_select) %></p> |
|
30 | <%= select("user", "language", lang_options_for_select) %></p> | |
31 |
|
31 | |||
32 | <% if Setting.openid? %> |
|
32 | <% if Setting.openid? %> | |
33 | <p><label for="user_identity_url"><%=l(:field_identity_url)%></label> |
|
33 | <p><label for="user_identity_url"><%=l(:field_identity_url)%></label> | |
34 | <%= text_field 'user', 'identity_url' %></p> |
|
34 | <%= text_field 'user', 'identity_url' %></p> | |
35 | <% end %> |
|
35 | <% end %> | |
36 |
|
36 | |||
37 | <% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %> |
|
37 | <% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %> | |
38 |
|
|
38 | <p><%= custom_field_tag_with_label :user, value %></p> | |
39 | <% end %> |
|
39 | <% end %> | |
40 | <!--[eoform:user]--> |
|
40 | <!--[eoform:user]--> | |
41 | </div> |
|
41 | </div> | |
42 |
|
42 | |||
43 | <%= submit_tag l(:button_submit) %> |
|
43 | <%= submit_tag l(:button_submit) %> | |
44 | <% end %> |
|
44 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now