ministryofjustice/atet

View on GitHub
app/views/save_and_return/sessions/new.html.slim

Summary

Maintainability
Test Coverage
.govuk-grid-row
  .govuk-grid-column-two-thirds
    h1 class="govuk-heading-xl govuk-!-padding-top-8" = t('claims.session.header')
.govuk-grid-row
  .govuk-grid-column-two-thirds
    = form_for resource, as: resource_name, url: session_path(resource_name), builder: EtGdsDesignSystem.form_builder_class do |f|
      = f.govuk_error_summary(t 'shared.error_notification.default_message')

      = f.fieldset label: t('claims.session.subheader') do
        hr class="govuk-section-break--m govuk-!-margin-top-0"
        = f.text_field :reference,
          label: { text: t('claims.session.reference.label') },
          hint: { text: t('claims.session.reference.hint') }

        = f.text_field :password,
          label: {text: t('claims.session.password.label')}

        = f.submit t('helpers.submit.save_and_return[session].create')

      p.govuk-body
        = t(".forgot_password")
        = link_to t(".reset_password"), new_password_path(resource_name), class: 'govuk-link'
      p.govuk-body = t('.hint_html', path: root_path)

  = render partial: 'shared/aside'