addressbook/Vanilla/templates/admin/users_edit.html.php

32 lines
1.1 KiB
PHP
Raw Normal View History

2022-10-23 19:16:10 +02:00
<?php include dirname(path: __DIR__) . '/_header.html.php'; ?>
<form method="POST">
2022-10-24 18:37:00 +02:00
<input type="hidden" name="id" value="<?= $editUser->getId() ?>">
2022-10-23 19:16:10 +02:00
<label for="nick">Username</label>
2022-10-27 15:38:33 +02:00
<input type="text" name="nick" id="nick" value="<?= $editUser->getNick() ?>" maxlength="20" required>
2022-10-23 19:16:10 +02:00
<br>
2022-10-24 20:04:24 +02:00
<label for="new_password">Password (leave empty to keep the current one)</label>
2022-10-27 15:38:33 +02:00
<input type="password" name="new_password" id="new_password" maxlength="40">
2022-10-23 19:16:10 +02:00
<br>
<label for="first">First</label>
2022-10-27 15:38:33 +02:00
<input type="text" name="first" id="first" value="<?= $editUser->getFirst() ?>" maxlength="40" required>
2022-10-23 19:16:10 +02:00
<br>
<label for="last">Last</label>
2022-10-27 15:38:33 +02:00
<input type="text" name="last" id="last" value="<?= $editUser->getLast() ?>" maxlength="40" required>
2022-10-23 19:16:10 +02:00
<br>
2022-10-24 18:43:28 +02:00
<label for="is_admin">Is Admin</label>
2022-10-24 18:37:00 +02:00
<input type="checkbox" name="is_admin" id="is_admin" <?= $editUser->isAdmin()?'checked':'' ?>>
2022-10-23 19:16:10 +02:00
<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' ?>