2009-02-11 22:45:53 +03:00
|
|
|
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2007-01-26 22:56:25 +03:00
|
|
|
<% form_tag({:action => 'register'}, :class => "tabular") do %>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= error_messages_for 'user' %>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<!--[form:user]-->
|
2008-07-19 14:47:19 +04:00
|
|
|
<% if @user.auth_source_id.nil? %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label>
|
2008-07-19 14:47:19 +04:00
|
|
|
<%= text_field 'user', 'login', :size => 25 %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
2007-11-24 15:52:29 +03:00
|
|
|
<%= password_field_tag 'password', nil, :size => 25 %><br />
|
|
|
|
<em><%= l(:text_caracters_minimum, 4) %></em></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
|
2008-07-19 14:47:19 +04:00
|
|
|
<% end %>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'user', 'firstname' %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'user', 'lastname' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= text_field 'user', 'mail' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_language"><%=l(:field_language)%></label>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= select("user", "language", lang_options_for_select) %></p>
|
|
|
|
|
2009-02-11 22:24:28 +03:00
|
|
|
<% if Setting.openid? %>
|
2009-02-11 22:07:07 +03:00
|
|
|
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label>
|
|
|
|
<%= text_field 'user', 'identity_url' %></p>
|
2009-02-11 22:24:28 +03:00
|
|
|
<% end %>
|
2009-02-11 22:07:07 +03:00
|
|
|
|
2009-01-17 14:18:04 +03:00
|
|
|
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
|
2008-06-28 00:13:56 +04:00
|
|
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2006-07-29 13:32:58 +04:00
|
|
|
<!--[eoform:user]-->
|
|
|
|
</div>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_submit) %>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|