summaryrefslogtreecommitdiff
path: root/app/Templates/user_password.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Templates/user_password.php')
-rw-r--r--app/Templates/user_password.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/Templates/user_password.php b/app/Templates/user_password.php
new file mode 100644
index 00000000..a494e42d
--- /dev/null
+++ b/app/Templates/user_password.php
@@ -0,0 +1,23 @@
+<div class="page-header">
+ <h2><?= t('Password modification') ?></h2>
+</div>
+
+<form method="post" action="?controller=user&amp;action=password&amp;user_id=<?= $user['id'] ?>" autocomplete="off">
+
+ <?= Helper\form_hidden('id', $values) ?>
+ <?= Helper\form_csrf() ?>
+
+ <?= Helper\form_label(t('Current password for the user "%s"', Helper\get_username()), 'current_password') ?>
+ <?= Helper\form_password('current_password', $values, $errors) ?><br/>
+
+ <?= Helper\form_label(t('Password'), 'password') ?>
+ <?= Helper\form_password('password', $values, $errors) ?><br/>
+
+ <?= Helper\form_label(t('Confirmation'), 'confirmation') ?>
+ <?= Helper\form_password('confirmation', $values, $errors) ?><br/>
+
+ <div class="form-actions">
+ <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> <?= t('or') ?> <a href="?controller=user&amp;action=show&amp;user_id=<?= $user['id'] ?>"><?= t('cancel') ?></a>
+ </div>
+
+</form> \ No newline at end of file