QutBioacoustics/baw-server

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

Summary

Maintainability
Test Coverage
- content_for :meta_title, t('devise.shared.links.unlock_account')
- content_for :page_title, t('devise.unlocks.new.resend_unlock_instructions')
- @info_bar = {title: t('baw.shared.links.accounts.title'),  icon: 'user'}
- set_current_menu_item(:login, {href: new_unlock_path(resource_name),
  title: t('devise.shared.links.unlock_account'),
  icon: 'unlock-alt' })

= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { class: 'form-horizontal', method: :post }) do |f|
  = field_set_tag do
    = f.error_notification
    = f.full_error :unlock_token
    = f.input :login, required: true, autofocus: true, hint: t('devise.confirmations.new.login_hint'), placeholder: 'Login'
    = f.button :submit_cancel, t('devise.unlocks.new.resend_unlock_instructions'), class: 'btn-default'