Frontend support for role selection in user create, read and update.

This commit is contained in:
frederikpyt
2020-06-30 08:03:42 +02:00
parent a4ff9a3590
commit c803d12299
6 changed files with 27 additions and 11 deletions
@@ -25,6 +25,12 @@
<input type="password" id="password2" placeholder="Bekræft Password" required>
<label for="tel">Telefon nr:</label>
<input type="tel" name="phone" id="tel" placeholder="12345678" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required>
<label for="role">Rolle:</label>
<select name="role" id="role" class="mb-2" required>
<option value="admin">Admin</option>
<option value="staff">Personale</option>
<option value="resident">Beboer</option>
</select>
<input type="submit" class="btn btn-dark text-white" value="Opret">
</form>
@endsection