add invite link and registration validation

This commit is contained in:
2021-09-10 22:22:18 -04:00
committed by oliviasculley
parent 261b417eb3
commit 5d4d8285fb
11 changed files with 207 additions and 112 deletions

View File

@ -11,6 +11,10 @@
</div>
<% end %>
<%= if @invite do %>
<%= hidden_input f, :invite_token, value: @invite.token %>
<% end %>
<div class="grid grid-cols-3 justify-center items-center text-center space-x-4">
<%= label f, :email, class: "title text-lg text-primary-500" %>
<%= email_input f, :email, required: true, class: "input input-primary col-span-2" %>
@ -24,7 +28,7 @@
<%= error_tag f, :password %>
<%= submit "Register", class: "btn btn-primary" %>
<hr class="hr">
<div class="flex flex-row justify-center items-center space-x-4">
@ -34,4 +38,4 @@
class: "btn btn-primary" %>
</div>
<% end %>
</div>
</div>