Sha256: d45827a2248e3661ec37b898740a90de92ba91966766eaefe3e8d474c2d6c120

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

<div class="devise-bootstrap-form">
  <div class="devise-bootstrap-form-row">
    <div class="devise-bootstrap-form-col">
      <h2 class="text-center"><%= t('.change_your_password') %></h2>

      <%= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
        <%= render "devise/shared/error_messages", resource: resource %>
        <%= f.hidden_field :reset_password_token %>

        <%= f.password_field :password,
                             autofocus: true,
                             autocomplete: "new-password",
                             help: "t('devise.shared.minimum_password_length', count: @minimum_password_length)",
                             label: t('.new_password') %>
        <%= f.password_field :password_confirmation,
                             label: t('.confirm_new_password'),
                             autocomplete: "off",
                             class: "required" %>
        <%= f.form_group do %>
          <%= f.submit t('.change_my_password'), class: 'btn btn-primary btn-block btn-lg' %>
        <% end %>
      <% end %>

      <div class="text-center">
        <%= render "devise/shared/links" %>
      </div>
    </div>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-bootstrap-form-0.4.0 app/views/i18n/passwords/edit.html.erb
devise-bootstrap-form-0.3.0 app/views/i18n/passwords/edit.html.erb