Sha256: 20d6126ef0937135b8b2a5188048b4ae8fd7e7de91f98670db84bbfa13027022

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

<%= form_with(url: admin_password_reset_path, method: :patch, class: "card card-md") do |form| %>
  <div class="card-body">
    <h1 class="card-title text-center mb-4">Reset password</h1>

    <%= hidden_field_tag :token, params[:token] %>

    <div class="mb-3">
      <%= form.label :password, "New password", class: "form-label" %>
      <%= form.password_field :password, required: true, autofocus: true, autocomplete: "new-password", class: "form-control" %>
      <%= tag.div @admin_user.errors[:password].first, class: "invalid-feedback d-block" %>
    </div>

    <div>
      <%= form.label :password_confirmation, "Confirm new password", class: "form-label" %>
      <%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", class: "form-control" %>
      <%= tag.div @admin_user.errors[:password_confirmation].first, class: "invalid-feedback d-block" %>
    </div>

    <div class="form-footer">
      <%= form.submit "Save changes", class: "btn btn-primary w-100" %>
    </div>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administration-zero-0.0.13 lib/generators/admin/install/templates/erb/admin/password_resets/edit.html.erb
administration-zero-0.0.12 lib/generators/admin/install/templates/erb/admin/password_resets/edit.html.erb
administration-zero-0.0.11 lib/generators/admin/install/templates/erb/admin/password_resets/edit.html.erb