bootstrapizar devise
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
effb1a7cfc
commit
8d5c35567c
6 changed files with 102 additions and 0 deletions
17
app/views/devise/confirmations/new.haml
Normal file
17
app/views/devise/confirmations/new.haml
Normal file
|
@ -0,0 +1,17 @@
|
|||
%section.w-100.min-vh-100.d-flex.align-items-center.justify-content-center
|
||||
%div
|
||||
= render 'layouts/site'
|
||||
|
||||
%h2= t('.resend_confirmation_instructions')
|
||||
|
||||
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
|
||||
.mb-3
|
||||
= f.label :email, class: 'form-label'
|
||||
= f.email_field :email, autofocus: true, autocomplete: 'email', value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), class: 'form-control', required: true
|
||||
|
||||
.mb-3
|
||||
= f.submit t('.resend_confirmation_instructions')
|
||||
|
||||
%div= render 'devise/shared/links'
|
24
app/views/devise/passwords/edit.haml
Normal file
24
app/views/devise/passwords/edit.haml
Normal file
|
@ -0,0 +1,24 @@
|
|||
%section.w-100.min-vh-100.d-flex.align-items-center.justify-content-center
|
||||
%div
|
||||
= render 'layouts/site'
|
||||
|
||||
%h2= t('.change_your_password')
|
||||
|
||||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
= f.hidden_field :reset_password_token
|
||||
|
||||
.mb-3
|
||||
= f.label :password, t('.new_password'), class: 'form-label'
|
||||
= f.password_field :password, autofocus: true, autocomplete: 'new-password', required: true, class: 'form-control'
|
||||
- if @minimum_password_length
|
||||
.form-text= t('devise.shared.minimum_password_length', count: @minimum_password_length)
|
||||
|
||||
.mb-3
|
||||
= f.label :password_confirmation, t('.confirm_new_password'), class: 'form-label'
|
||||
= f.password_field :password_confirmation, autocomplete: 'new-password', required: true, class: 'form-control'
|
||||
|
||||
.mb-4
|
||||
= f.submit t('.change_my_password'), class: 'btn btn-success'
|
||||
|
||||
%div= render 'devise/shared/links'
|
17
app/views/devise/passwords/new.haml
Normal file
17
app/views/devise/passwords/new.haml
Normal file
|
@ -0,0 +1,17 @@
|
|||
%section.w-100.min-vh-100.d-flex.align-items-center.justify-content-center
|
||||
%div
|
||||
= render 'layouts/site'
|
||||
|
||||
%h2= t('.forgot_your_password')
|
||||
|
||||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
|
||||
.mb-3
|
||||
= f.label :email, class: 'form-label'
|
||||
= f.email_field :email, autofocus: true, autocomplete: 'email', required: true, class: 'form-control'
|
||||
|
||||
.mb-3
|
||||
= f.submit t('.send_me_reset_password_instructions'), class: 'btn btn-success'
|
||||
|
||||
%div= render "devise/shared/links"
|
19
app/views/devise/sessions/new.haml
Normal file
19
app/views/devise/sessions/new.haml
Normal file
|
@ -0,0 +1,19 @@
|
|||
%section.w-100.min-vh-100.d-flex.align-items-center.justify-content-center
|
||||
%div
|
||||
= render 'layouts/site'
|
||||
|
||||
%h2= t('.sign_in')
|
||||
|
||||
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
||||
.mb-3
|
||||
= f.label :email, class: 'form-label'
|
||||
= f.email_field :email, autofocus: true, required: true, autocomplete: 'email', class: 'form-control'
|
||||
|
||||
.mb-3
|
||||
= f.label :password, class: 'form-label'
|
||||
= f.password_field :password, required: true, autocomplete: 'password', class: 'form-control'
|
||||
|
||||
.mb-3
|
||||
= f.submit t('.sign_in'), class: 'btn btn-success btn-block'
|
||||
|
||||
%div= render 'devise/shared/links'
|
8
app/views/devise/shared/_error_messages.haml
Normal file
8
app/views/devise/shared/_error_messages.haml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- if resource.errors.any?
|
||||
.alert.alert-primary
|
||||
%h4.alert-heading
|
||||
= I18n.t('errors.messages.not_saved', count: resource.errors.count, resource: resource.class.model_name.human.downcase)
|
||||
|
||||
%ul
|
||||
- resource.errors.full_messages.each do |message|
|
||||
%li= message
|
17
app/views/devise/unlocks/new.haml
Normal file
17
app/views/devise/unlocks/new.haml
Normal file
|
@ -0,0 +1,17 @@
|
|||
%section.w-100.min-vh-100.d-flex.align-items-center.justify-content-center
|
||||
%div
|
||||
= render 'layouts/site'
|
||||
|
||||
%h2= t('.resend_unlock_instructions')
|
||||
|
||||
= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
.mb-3
|
||||
= f.label :email, class: 'form-label'
|
||||
= f.email_field :email, autofocus: true, autocomplete: 'email', required: true, class: 'form-control'
|
||||
|
||||
.mb-3
|
||||
= f.submit t('.resend_unlock_instructions'), class: 'btn btn-success'
|
||||
|
||||
= render 'devise/shared/links'
|
Loading…
Reference in a new issue