diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index a887194b5..adf131965 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -1,43 +1,30 @@

<%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>

-<% form_tag({:action => 'register'}, :class => "tabular") do %> +<% labelled_form_for @user, :url => {:action => 'register'} do |f| %> <%= error_messages_for 'user' %> -
- +
<% if @user.auth_source_id.nil? %> -

-<%= text_field 'user', 'login', :size => 25 %>

+

<%= f.text_field :login, :size => 25, :required => true %>

-

-<%= password_field_tag 'password', nil, :size => 25 %>
-<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

+

<%= f.password_field :password, :size => 25, :required => true %>
+ <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

-

-<%= password_field_tag 'password_confirmation', nil, :size => 25 %>

+

<%= f.password_field :password_confirmation, :size => 25, :required => true %>

<% end %> -

-<%= text_field 'user', 'firstname' %>

- -

-<%= text_field 'user', 'lastname' %>

- -

-<%= text_field 'user', 'mail' %>

- -

-<%= select("user", "language", lang_options_for_select) %>

+

<%= f.text_field :firstname, :required => true %>

+

<%= f.text_field :lastname, :required => true %>

+

<%= f.text_field :mail, :required => true %>

+

<%= f.select :language, lang_options_for_select %>

<% if Setting.openid? %> -

-<%= text_field 'user', 'identity_url' %>

+

<%= f.text_field :identity_url %>

<% end %> <% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>

<%= custom_field_tag_with_label :user, value %>

<% end %> -
<%= submit_tag l(:button_submit) %>