app/views/devise/invitations/edit.html.slim
/ PageHeader
- content_for :page_header_title, t('devise.registrations.edit.title')
/ PageContent
.page_content
.container-fluid
.row
.col-lg-8.col-lg-offset-2.col-md-8.col-md-offset-2.col-sm-10.col-sm-offset-1
= simple_form_for resource, as: resource_name, :url => invitation_path(resource_name), :html => { :method => :put, class: "form-horizontal", id: 'invitation_form' } do |form|
.row
.col-lg-12
= form.hidden_field :invitation_token
= form.input :name
= form.input :password, as: :password
= form.input :password_confirmation, as: :password
- if resource.organisation&.authentication
.row
.col-md-12
= link_to(t('sign_in_with', scope: %i[devise sessions new], authentication: resource.organisation.authentication.name), resource.organisation.authentication.sign_in_url(self), class: 'btn btn-default btn-primary')
= form.button :submit, value: t('actions.submit'), class: 'btn-info btn-default formSubmitr', form: 'invitation_form'