diff options
author | Matthew Lemon <y@yulqen.org> | 2024-11-11 21:09:06 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-11-11 21:09:06 +0000 |
commit | 634cf4ee06a4820eaa2431a272b9a223118cf884 (patch) | |
tree | 2e49854aa28062c9c68fdbe0e554459469098d61 /app/views/registrations/new.html.erb | |
parent | b4acbcadc7b4f73efe0580be2dd3cf1dbe342682 (diff) |
Adds is_admin to the User model and ensures only admin users can add new resource
Diffstat (limited to '')
-rw-r--r-- | app/views/registrations/new.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb index b9e01e1..f70d143 100644 --- a/app/views/registrations/new.html.erb +++ b/app/views/registrations/new.html.erb @@ -26,7 +26,7 @@ <%= label_tag "email_address", nil, class: "font-bold text-gray-700" %> <%= form.email_field :email_address, required: true, autocomplete: "email_address", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> </div> - + <div class="my-5"> <%= label_tag "password", nil, class: "font-bold text-gray-700" %> <%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> |