ministryofjustice/Claim-for-Crown-Court-Defence

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

Summary

Maintainability
Test Coverage
= content_for :page_title, flush: true do
  = t('.page_title')

= render partial: 'layouts/header', locals: {page_heading: t('.page_heading')}

.govuk-grid-row
  .govuk-grid-column-two-thirds
    = form_with(model: resource, as: resource_name, url: password_path(resource_name), method: :post) do |f|
      = render "devise/shared/error_messages", resource: resource

      = f.govuk_email_field :email, label: { text: t('.email') }, autofocus: true, autocomplete: 'off'
      = f.govuk_submit t('.send_button')

    = render 'devise/shared/links'