QutBioacoustics/baw-server

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

Summary

Maintainability
Test Coverage
- content_for :meta_title, t('devise.shared.links.sign_up')
- content_for :page_title, t('devise.registrations.new.sign_up')
- @info_bar = {title: t('baw.shared.links.accounts.title'),  icon: 'user'}


= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: 'form-horizontal', method: :post }) do |f|
  = field_set_tag do
    = f.error_notification
    = f.input :user_name, required: true, autofocus: true, placeholder: 'User name'
    = f.input :email, required: true, autofocus: true, placeholder: 'Email'
    = f.input :password, label: t('devise.passwords.edit.new_password'), required: true, autofocus: true, placeholder: 'Password',
      hint: (t('devise.passwords.edit.hint_password_length',  minimum_password_length: @minimum_password_length) if @minimum_password_length)
    = f.input :password_confirmation, label: t('devise.passwords.edit.confirm_new_password'), required: true, placeholder: 'Confirm password'
    = render partial: 'shared/recaptcha', locals: {data_item: resource, data_item_name: resource_name, data_action: 'register' }
    = f.button :submit_cancel, t('devise.shared.links.sign_up'), class: 'btn-default'