2014-10-22 19:59:09 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Password modification') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<form method="post" action="<?= $this->u('user', 'password', array('user_id' => $user['id'])) ?>" autocomplete="off">
|
2014-10-22 19:59:09 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formHidden('id', $values) ?>
|
|
|
|
<?= $this->formCsrf() ?>
|
2014-10-22 19:59:09 +02:00
|
|
|
|
2014-12-22 19:15:38 +01:00
|
|
|
<div class="alert alert-error">
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formLabel(t('Current password for the user "%s"', $this->getFullname()), 'current_password') ?>
|
|
|
|
<?= $this->formPassword('current_password', $values, $errors) ?><br/>
|
2014-12-22 19:15:38 +01:00
|
|
|
</div>
|
2014-10-22 19:59:09 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formLabel(t('New password for the user "%s"', $this->getFullname($user)), 'password') ?>
|
|
|
|
<?= $this->formPassword('password', $values, $errors) ?><br/>
|
2014-10-22 19:59:09 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formLabel(t('Confirmation'), 'confirmation') ?>
|
|
|
|
<?= $this->formPassword('confirmation', $values, $errors) ?><br/>
|
2014-10-22 19:59:09 +02:00
|
|
|
|
|
|
|
<div class="form-actions">
|
2014-12-22 19:15:38 +01:00
|
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
|
|
<?= t('or') ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
|
2014-10-22 19:59:09 +02:00
|
|
|
</div>
|
2014-12-22 19:15:38 +01:00
|
|
|
</form>
|