docbrown/app/views/devise/invitations/edit.html.erb
Michael Kohl b7ff9aadd1
Clean up SiteConfig (#13738)
* Remove obsolete SiteConfig values

* Remove DUS

* fixup! Remove obsolete SiteConfig values

* fixup! Remove obsolete SiteConfig values

* Add DUS for removing SiteConfig values

* Fix specs

* Fix specs

* Clean up more DUS

* Update DUS

* Fix remaining spec

* Remove leftover spec

* Fix more specs

* Fix spec

* Remove deprecated spec

* Rearrange specs

* Temporarily disable specs
2021-05-18 09:38:31 +07:00

33 lines
1.3 KiB
Text

<% title "Set your Password to Join" %>
<div class="crayons-layout crayons-layout--limited-l mb-10" style="max-width:640px">
<div class="crayons-notice mt-4" aria-live="polite">
<h1>Welcome to <%= community_name %></h1>
<% if Settings::Community.tagline.present? %>
<h3><%= Settings::Community.tagline %></h3>
<% end %>
</div>
<div class="mt-3 crayons-card p-7 align-left">
<h2>Set a password to access your account</h2>
<%= form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :put }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>
<%= f.hidden_field :invitation_token, readonly: true %>
<% if f.object.class.require_password_on_accepting %>
<div class="crayons-field mt-5">
<%= f.label :password, class: "crayons-field__label" %>
<%= f.password_field :password, class: "crayons-textfield" %>
</div>
<div class="crayons-field">
<%= f.label :password_confirmation, class: "crayons-field__label" %>
<%= f.password_field :password_confirmation, class: "crayons-textfield" %>
</div>
<% end %>
<div class="mt-6">
<%= f.submit t("devise.invitations.edit.submit_button"), class: "crayons-btn" %>
</div>
<% end %>
</div>
</div>