<section class="viewblock no">
  <header class="viewblock-header">
		<h1 class="default-padding"><%= t('.change_password_for', username: resource.name) %></h1>
  </header>
  <div class="viewblock-cont">
		<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
		  <%= devise_error_messages! %>
			
			<fieldset>
				<div class="clearfix">
				  <%= f.label :current_password, t('.current_password') %>
				  <div class="input">
						<%= f.password_field :current_password, autofocus: true, class: "input-medium" %>
					</div>
				</div>
				<div class="clearfix">
				  <%= f.label :password, t('.new_password') %> 
				  <div class="input">
						<%= f.password_field :password, class: "input-medium" %>
					</div>
				</div>
				<div class="clearfix">
				  <%= f.label :password_confirmation, t('.confirm_password') %> 
				  <div class="input">
						<%= f.password_field :password_confirmation, class: "input-medium" %>
					</div>
				</div>
			</fieldset>
			
			<div class="submit_bar actions">
			  <%= f.submit class: "btn btn-primary" %>
			  <%= link_to t(:cancel), resource, class: "btn" %>
			</div>

		<% end %>
  </div>
</section>
