summaryrefslogtreecommitdiff
path: root/app/Template/user_password.php
blob: 5da385956a3465f26474935138f29acf10e049c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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('New password for the user "%s"', Helper\get_username($user)), '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>