To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 7b / 7b0091cb7275a16ba6daf28038e36a659196b7a1.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.73 KB)
| 1 |
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2> |
|---|---|
| 2 |
|
| 3 |
<% form_tag({:action => 'register'}, :class => "tabular") do %>
|
| 4 |
<%= error_messages_for 'user' %> |
| 5 |
|
| 6 |
<div class="box"> |
| 7 |
<!--[form:user]--> |
| 8 |
<% 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> |
| 11 |
|
| 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> |
| 15 |
|
| 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> |
| 18 |
<% end %> |
| 19 |
|
| 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>
|
| 31 |
|
| 32 |
<% if Setting.openid? %> |
| 33 |
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label> |
| 34 |
<%= text_field 'user', 'identity_url' %></p> |
| 35 |
<% end %> |
| 36 |
|
| 37 |
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
|
| 38 |
<p><%= custom_field_tag_with_label :user, value %></p> |
| 39 |
<% end %> |
| 40 |
<!--[eoform:user]--> |
| 41 |
</div> |
| 42 |
|
| 43 |
<%= submit_tag l(:button_submit) %> |
| 44 |
<% end %> |