anthonymidili/Recipedia

View on GitHub
app/views/devise/unlocks/new.html.haml

Summary

Maintainability
Test Coverage
.row.center
  .col-md-6
    %h1 Resend unlock instructions

    = form_with model: resource, as: resource_name, url: unlock_path(resource_name),
    html: { method: :post }, local: true, data: { turbo: false } do |f|
      = render 'notifications/error_messages', object: f.object
      .mb-3
        = f.label :email, for: "deviseEmail", class: "form-label"
        = f.email_field :email, autofocus: true,
        id: "deviseEmail", class: "form-control"

      .mb-3
        = f.submit 'Resend unlock instructions', class: 'btn btn-primary'

    .mb-3
      = render 'devise/shared/links'