mirror of
https://0xacab.org/sutty/sutty
synced 2024-12-01 10:16:20 +00:00
25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
|
.row.align-items-center.justify-content-center.full-height
|
||
|
.col-md-10.align-self-center
|
||
|
= raw CommonMarker.render_doc(@site.config.dig('welcome', 'message') || t('.welcome')).to_html
|
||
|
|
||
|
.col-md-6.align-self-center
|
||
|
-# Copiado y pegado de app/views/devise/registrations/new.haml
|
||
|
- resource = resource_name = @invitade
|
||
|
= form_for(resource, as: resource_name, url: site_collaborate_path(@site), method: :post) do |f|
|
||
|
- unless current_usuarie
|
||
|
= render 'layouts/flash'
|
||
|
.form-group
|
||
|
= f.label :email
|
||
|
= f.email_field :email, autofocus: true, autocomplete: 'email',
|
||
|
class: 'form-control'
|
||
|
.form-group
|
||
|
= f.label :password
|
||
|
- if @minimum_password_length
|
||
|
%em= t('devise.shared.minimum_password_length', count: @minimum_password_length)
|
||
|
= f.password_field :password, autocomplete: 'new-password',
|
||
|
class: 'form-control'
|
||
|
|
||
|
.form-group
|
||
|
- button = @site.config.dig('welcome', 'button')
|
||
|
= f.submit t('.submit'), class: 'btn btn-lg btn-primary btn-block', style: (button) ? "background-color: #{button};" : ''
|