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