5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 03:21:42 +00:00
panel/app/views/devise/invitations/edit.haml

35 lines
1.4 KiB
Text
Raw Permalink Normal View History

2019-09-11 19:29:05 +00:00
= content_for :body do
- 'black-bg'
2019-07-05 23:55:59 +00:00
.row.align-items-center.justify-content-center.full-height
2019-09-11 19:29:05 +00:00
.col-md-5.align-self-center
2019-07-05 23:55:59 +00:00
%h2= t 'devise.invitations.edit.header'
2019-09-11 19:29:05 +00:00
= form_for(resource,
as: resource_name,
url: invitation_path(resource_name),
html: { method: :put }) do |f|
2019-07-05 23:55:59 +00:00
= render 'devise/shared/error_messages', resource: resource
= f.hidden_field :invitation_token, readonly: true
- if f.object.class.require_password_on_accepting
.form-group
2019-09-11 19:29:05 +00:00
= f.label :password, class: 'sr-only'
= f.password_field :password, class: 'form-control',
min: @minimum_password_length,
aria: { describedby: 'minimum-password-length' },
placeholder: t('activerecord.attributes.usuarie.password')
- if @minimum_password_length
%small.text-muted.form-text#minimum-password-length
= t('devise.shared.minimum_password_length',
count: @minimum_password_length)
2019-07-05 23:55:59 +00:00
.form-group
2019-09-11 19:29:05 +00:00
= f.label :password_confirmation, class: 'sr-only'
= f.password_field :password_confirmation,
class: 'form-control',
min: @minimum_password_length,
aria: { describedby: 'minimum-password-length' },
placeholder: t('activerecord.attributes.usuarie.password')
2019-07-05 23:55:59 +00:00
.actions
= f.submit t('devise.invitations.edit.submit_button'),
2019-09-11 19:29:05 +00:00
class: 'btn btn-lg btn-block'