sutty/app/views/devise/invitations/new.haml

13 lines
597 B
Text
Raw Normal View History

2019-07-05 23:55:59 +00:00
.row.align-items-center.justify-content-center.full-height
.col-md-6.align-self-center
%h2= t 'devise.invitations.new.header'
= form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post }) do |f|
= render 'devise/shared/error_messages', resource: resource
- resource.class.invite_key_fields.each do |field|
.form-group
= f.label field
= f.text_field field, class: 'form-control'
.actions
= f.submit t('devise.invitations.new.submit_button'),
class: 'btn btn-lg btn-primary btn-block'