Creating User Form
Let's extend the create user form by adding role and password fields.
We'll cover the following
We used the DatabaseInitializer
to create some users, but now we also need to make the “Create User” form work again with both the role and password fields.
User role selection
We’ll start by adding the user role selection using an HTML <select>
for this (sometimes called a dropdown or combobox).
Let’s add the following to edit.html
:
Get hands-on with 1200+ tech skills courses.