Sha256: 6e8232fe5756a4f0207f0d05ce582709a02315a82d7b1241e517b01828109316

Contents?: true

Size: 1.4 KB

Versions: 4

Compression:

Stored size: 1.4 KB

Contents

<% content_for :breadcrumb do %>
<ol class="breadcrumb">
  <li><%= link_to _('Sign in'), new_session_path(resource_name) %></li>
  <li class="active"><%= _('Set your password') %></li>
</ol>
<% end %>

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: {method: :put, role: 'form'}) do |f| %>
  <%= f.hidden_field :reset_password_token %>

<% if resource.errors.any? %>
  <div class="alert alert-danger">
  <% resource.errors.full_messages.each do |message| %>
    <p><%= message %></p>
  <% end %>
  </div>
<% end %>

  <div class="form-group<% if resource.errors[:password].any? %> has-error has-feedback<% end %>">
    <%= f.label :password, _('New password') %>
    <%= f.password_field :password, autofocus: true, autocomplete: 'off', class: 'form-control' %>
  <% if resource.errors[:password].any? %>
    <span class="glyphicon glyphicon-remove form-control-feedback"></span>
  <% end %>
  </div>

  <div class="form-group<% if resource.errors[:password_confirmation].any? %> has-error has-feedback<% end %>">
    <%= f.label :password_confirmation, _('Confirm password') %>
    <%= f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control' %>
  <% if resource.errors[:password_confirmation].any? %>
    <span class="glyphicon glyphicon-remove form-control-feedback"></span>
  <% end %>
  </div>

  <%= f.button _('Set password'), class: 'btn btn-primary' %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 app/views/devise/passwords/edit.html.erb
citizen_budget_model-0.0.3 app/views/devise/passwords/edit.html.erb
citizen_budget_model-0.0.2 app/views/devise/passwords/edit.html.erb
citizen_budget_model-0.0.1 app/views/devise/passwords/edit.html.erb