<% @nav_dispaly_home_path_label = 1 @nav_dispaly_main_course_label = 1 @nav_dispaly_main_project_label = 1 @nav_dispaly_main_contest_label = 1 %> <% @nav_dispaly_forum_label = 1%>

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

<%= labelled_form_for @user, :url => register_path do |f| %> <%= error_messages_for 'user' %>
<% if @user.auth_source_id.nil? %>

<%= f.text_field :login, :size => 25, :required => true %> <%= l(:label_max_number) %>

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

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

<% end %>

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

<%= "#{l(:label_mail_attention)} " %>

<%= "#{l(:label_mail_attention1)} " %>

<%= submit_tag l(:button_submit) %>

<% end %> <% if Setting.openid? %>

<%= 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 %> <% password_min_length = Setting.password_min_length %>