32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php include dirname(path: __DIR__) . '/_header.html.php'; ?>
|
|
|
|
<form method="POST">
|
|
<input type="hidden" name="id" value="<?= $editUser->getId() ?>">
|
|
|
|
<label for="nick">Username</label>
|
|
<input type="text" name="nick" id="nick" value="<?= $editUser->getNick() ?>" required>
|
|
<br>
|
|
|
|
<label for="new_password">Password (leave empty to keep the current one)</label>
|
|
<input type="password" name="new_password" id="new_password">
|
|
<br>
|
|
|
|
<label for="first">First</label>
|
|
<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="<?= $editUser->getLast() ?>" required>
|
|
<br>
|
|
|
|
<label for="is_admin">Is Admin</label>
|
|
<input type="checkbox" name="is_admin" id="is_admin" <?= $editUser->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' ?>
|