2007-10-20 16:47:05 +04:00
|
|
|
<h2><%=l(:button_change_password)%></h2>
|
|
|
|
|
|
|
|
<%= error_messages_for 'user' %>
|
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({}, :class => "tabular") do %>
|
2007-10-20 16:47:05 +04:00
|
|
|
<div class="box">
|
|
|
|
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
|
|
|
<%= password_field_tag 'password', nil, :size => 25 %></p>
|
|
|
|
|
|
|
|
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
|
2012-02-03 00:07:37 +04:00
|
|
|
<%= password_field_tag 'new_password', nil, :size => 25 %>
|
|
|
|
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
2007-10-20 16:47:05 +04:00
|
|
|
|
|
|
|
<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
|
|
|
|
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
|
|
|
|
</div>
|
|
|
|
<%= submit_tag l(:button_apply) %>
|
|
|
|
<% end %>
|
|
|
|
|
2013-08-05 21:58:33 +04:00
|
|
|
<% unless @user.must_change_passwd? %>
|
2007-10-20 16:47:05 +04:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render :partial => 'sidebar' %>
|
|
|
|
<% end %>
|
2013-08-05 21:58:33 +04:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= javascript_tag "$('#password').focus();" %>
|