2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'user' %>
|
|
|
|
|
|
|
|
<!--[form:user]-->
|
2009-11-13 21:11:10 +03:00
|
|
|
<div class="box tabular">
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_field :login, :required => true, :size => 25 %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= f.text_field :firstname, :required => true %></p>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_field :lastname, :required => true %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= f.text_field :mail, :required => true %></p>
|
|
|
|
<p><%= f.select :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><%= f.text_field :identity_url %></p>
|
2009-02-11 22:24:28 +03:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-06-28 00:13:56 +04:00
|
|
|
<% @user.custom_field_values.each do |value| %>
|
|
|
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-05-25 15:22:53 +04:00
|
|
|
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
|
2009-03-21 03:22:59 +03:00
|
|
|
<%= call_hook(:view_users_form, :user => @user, :form => f) %>
|
2006-07-29 13:32:58 +04:00
|
|
|
</div>
|
2006-11-12 21:50:30 +03:00
|
|
|
|
2009-11-13 21:11:10 +03:00
|
|
|
<div class="box tabular">
|
2006-11-12 21:50:30 +03:00
|
|
|
<h3><%=l(:label_authentication)%></h3>
|
|
|
|
<% unless @auth_sources.empty? %>
|
2007-05-27 15:57:49 +04:00
|
|
|
<p><%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %></p>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2007-05-27 15:57:49 +04:00
|
|
|
<div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>">
|
2010-12-12 16:39:55 +03:00
|
|
|
<p><%= f.password_field :password, :required => true, :size => 25 %><br />
|
2009-04-21 17:43:57 +04:00
|
|
|
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
2010-12-12 16:39:55 +03:00
|
|
|
<p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p>
|
2006-11-12 21:50:30 +03:00
|
|
|
</div>
|
2007-05-27 15:57:49 +04:00
|
|
|
</div>
|
2010-09-29 02:13:06 +04:00
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h3><%=l(:field_mail_notification)%></h3>
|
|
|
|
<%= render :partial => 'users/mail_notifications' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box tabular">
|
|
|
|
<h3><%=l(:label_preferences)%></h3>
|
|
|
|
<%= render :partial => 'users/preferences' %>
|
|
|
|
</div>
|
2006-11-12 21:50:30 +03:00
|
|
|
<!--[eoform:user]-->
|