fixed a wrong named label

This commit is contained in:
tracer 2022-10-23 19:16:10 +02:00
parent 63d4f339e3
commit 442cd25aa6

View File

@ -0,0 +1,31 @@
<?php include dirname(path: __DIR__) . '/_header.html.php'; ?>
<form method="POST">
<input type="hidden" name="id" value="<?= $user->getId() ?>">
<label for="nick">Username</label>
<input type="text" name="nick" id="nick" value="<?= $user->getNick() ?>">
<br>
<label for="password">Password (leave empty to keep the current one)</label>
<input type="password" name="password" id="password">
<br>
<label for="first">First</label>
<input type="text" name="first" id="first" value="<?= $user->getFirst() ?>">
<br>
<label for="last">Last</label>
<input type="text" name="last" id="last" value="<?= $user->getLast() ?>">
<br>
<label for="is-admin">Is Admin</label>
<input type="checkbox" name="is-admin" id="is-admin" <?= $user->isAdmin()?'checked':'' ?>>
<br>
<!-- maybe later -->
<!-- <input type="hidden" name="_csrf" value="csrf_token" -->
<input type="submit" value="Save">
</form>
<?php include dirname(path: __DIR__) . '/_footer.html.php' ?>