added required to fields
This commit is contained in:
parent
0a9a253b84
commit
bf5425737b
@ -1,10 +1,10 @@
|
||||
<?php include dirname(path: __DIR__) . '/_header.html.php'; ?>
|
||||
|
||||
<form method="POST">
|
||||
<input type="hidden" name="id" value="<?= $user->getId() ?>">
|
||||
<input type="hidden" name="id" value="<?= $editUser->getId() ?>">
|
||||
|
||||
<label for="nick">Username</label>
|
||||
<input type="text" name="nick" id="nick" value="<?= $user->getNick() ?>">
|
||||
<input type="text" name="nick" id="nick" value="<?= $editUser->getNick() ?>" required>
|
||||
<br>
|
||||
|
||||
<label for="password">Password (leave empty to keep the current one)</label>
|
||||
@ -12,15 +12,15 @@
|
||||
<br>
|
||||
|
||||
<label for="first">First</label>
|
||||
<input type="text" name="first" id="first" value="<?= $user->getFirst() ?>">
|
||||
<input type="text" name="first" id="first" value="<?= $editUser->getFirst() ?>" required>
|
||||
<br>
|
||||
|
||||
<label for="last">Last</label>
|
||||
<input type="text" name="last" id="last" value="<?= $user->getLast() ?>">
|
||||
<input type="text" name="last" id="last" value="<?= $editUser->getLast() ?>" required>
|
||||
<br>
|
||||
|
||||
<label for="is-admin">Is Admin</label>
|
||||
<input type="checkbox" name="is-admin" id="is-admin" <?= $user->isAdmin()?'checked':'' ?>>
|
||||
<input type="checkbox" name="is_admin" id="is_admin" <?= $editUser->isAdmin()?'checked':'' ?>>
|
||||
<br>
|
||||
|
||||
<!-- maybe later -->
|
||||
|
Loading…
Reference in New Issue
Block a user