40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
<h1 class="login-logo"><%= t(:ruling_site) %></h1>
|
||
<div id="signin-header">
|
||
<h3><%= t(:password_change) %></h3>
|
||
</div>
|
||
<div id="container" class="sign-in">
|
||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'user_new form-horizontal' }) do |f| %>
|
||
<div class="content">
|
||
|
||
<% unless f.error_messages.blank? %>
|
||
<div class="modal alert alert-error hide" id="myModal">
|
||
<p type="button" class="close" data-dismiss="modal">×</p>
|
||
<%= f.error_messages %>
|
||
</div>
|
||
<script>
|
||
$('#myModal').modal('show')
|
||
</script>
|
||
<% end -%>
|
||
|
||
<div class="main">
|
||
<div class="control-group clear">
|
||
<%= f.label :password, t(:password)%>
|
||
<%= f.text_field :password, :placeholder => t(:password), :style => "width: 330px;" %>
|
||
</div>
|
||
<div class="control-group clear">
|
||
<%= f.label :password_confirmation, t(:password_confirmation)%>
|
||
<%= f.text_field :password_confirmation, :placeholder => t(:password_confirmation), :style => "width: 330px;" %>
|
||
</div>
|
||
<div class="control-group clear">
|
||
<%= f.label :current_password, t(:password_current)%>
|
||
<%= f.text_field :current_password, :placeholder => t(:password_current), :style => "width: 330px;" %>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-actions clear">
|
||
<%= link_to t(:back), :back, :class => 'btn' %>
|
||
<%= content_tag :button, t(:update), :type => :submit, :class => 'btn btn-primary pull-right' %>
|
||
</div>
|
||
<% end %>
|
||
</div>
|