docbrown/app/views/devise/invitations/edit.html.erb
Suzanne Aitchison 25bf8a0711
Remove name from invitation flow (#17438)
* remove name from invite user flow

* remove name from invitation instructions

* update invitations spec

* update specs and invitation actions overflow menu name

* allow users to set name when accepting invite
2022-05-03 09:33:12 +01:00

38 lines
1.5 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>Finish setting up 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 %>
<div class="crayons-field mt-5">
<%= f.label :name, class: "crayons-field__label" %>
<%= f.text_field :name, class: "crayons-textfield" %>
</div>
<% 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>