5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 19:26:22 +00:00
panel/app/views/collaborations/collaborate.haml

29 lines
1.2 KiB
Text
Raw Permalink Normal View History

2019-07-08 20:58:14 +00:00
.row.align-items-center.justify-content-center.full-height
2023-04-20 21:23:58 +00:00
.col-12.col-lg-10.align-self-center
2019-09-24 23:28:02 +00:00
- welcome = @site.config.dig('welcome', 'message') || t('.welcome',
2024-06-04 15:49:37 +00:00
site: @site.hostname)
2019-09-12 16:55:20 +00:00
= sanitize_markdown welcome
2019-07-08 20:58:14 +00:00
2023-04-20 21:23:58 +00:00
.col-12.col-lg-6.align-self-center
2019-07-08 20:58:14 +00:00
-# Copiado y pegado de app/views/devise/registrations/new.haml
- resource = resource_name = @invitade
2019-09-12 16:55:20 +00:00
= form_for(resource, as: resource_name,
2024-06-04 15:49:37 +00:00
url: site_collaborate_path(@site),
method: :post) do |f|
2019-07-08 20:58:14 +00:00
- unless current_usuarie
.form-group
= f.label :email
= f.email_field :email, autofocus: true, autocomplete: 'email',
2024-06-04 15:49:37 +00:00
class: 'form-control'
2019-07-08 20:58:14 +00:00
.form-group
= f.label :password
- if @minimum_password_length
2019-09-12 16:55:20 +00:00
%em
= t('devise.shared.minimum_password_length',
2024-06-04 15:49:37 +00:00
count: @minimum_password_length)
2019-07-08 20:58:14 +00:00
= f.password_field :password, autocomplete: 'new-password',
2024-06-04 15:49:37 +00:00
class: 'form-control'
2019-07-08 20:58:14 +00:00
.form-group
= f.submit t('.submit'), class: 'btn btn-secondary btn-lg btn-block'