View cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8479 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6b5f75bb1d
commit
d5030c8b81
|
@ -1,43 +1,30 @@
|
||||||
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
|
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
|
||||||
|
|
||||||
<% form_tag({:action => 'register'}, :class => "tabular") do %>
|
<% labelled_form_for @user, :url => {:action => 'register'} do |f| %>
|
||||||
<%= error_messages_for 'user' %>
|
<%= error_messages_for 'user' %>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box tabular">
|
||||||
<!--[form:user]-->
|
|
||||||
<% if @user.auth_source_id.nil? %>
|
<% if @user.auth_source_id.nil? %>
|
||||||
<p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label>
|
<p><%= f.text_field :login, :size => 25, :required => true %></p>
|
||||||
<%= text_field 'user', 'login', :size => 25 %></p>
|
|
||||||
|
|
||||||
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
<p><%= f.password_field :password, :size => 25, :required => true %><br />
|
||||||
<%= password_field_tag 'password', nil, :size => 25 %><br />
|
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
||||||
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
|
||||||
|
|
||||||
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
|
<p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p>
|
||||||
<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
|
<p><%= f.text_field :firstname, :required => true %></p>
|
||||||
<%= text_field 'user', 'firstname' %></p>
|
<p><%= f.text_field :lastname, :required => true %></p>
|
||||||
|
<p><%= f.text_field :mail, :required => true %></p>
|
||||||
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
|
<p><%= f.select :language, lang_options_for_select %></p>
|
||||||
<%= text_field 'user', 'lastname' %></p>
|
|
||||||
|
|
||||||
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
|
|
||||||
<%= text_field 'user', 'mail' %></p>
|
|
||||||
|
|
||||||
<p><label for="user_language"><%=l(:field_language)%></label>
|
|
||||||
<%= select("user", "language", lang_options_for_select) %></p>
|
|
||||||
|
|
||||||
<% if Setting.openid? %>
|
<% if Setting.openid? %>
|
||||||
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label>
|
<p><%= f.text_field :identity_url %></p>
|
||||||
<%= text_field 'user', 'identity_url' %></p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
|
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
|
||||||
<p><%= custom_field_tag_with_label :user, value %></p>
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--[eoform:user]-->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag l(:button_submit) %>
|
<%= submit_tag l(:button_submit) %>
|
||||||
|
|
Loading…
Reference in New Issue