about summary refs log tree commit diff
path: root/app/views/auth/challenges/new.html.haml
blob: 4f21e4af6e7eb5c23df3a7a67e52e3b8245d586b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- content_for :page_title do
  = t('challenge.prompt')

= simple_form_for @challenge, url: request.get? ? auth_challenge_path : '' do |f|
  = f.input :return_to, as: :hidden

  .field-group
    = f.input :current_password, wrapper: :with_block_label, input_html: { autocomplete: 'current-password', autofocus: true }, label: t('challenge.prompt'), required: true

  .actions
    = f.button :button, t('challenge.confirm'), type: :submit

  %p.hint.subtle-hint= t('challenge.hint_html')

.form-footer= render 'auth/shared/links'