1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/user/password.php

27 lines
1 KiB
PHP
Raw Normal View History

2014-10-22 19:59:09 +02:00
<div class="page-header">
<h2><?= t('Password modification') ?></h2>
</div>
2014-12-22 19:15:38 +01:00
<form method="post" action="<?= Helper\u('user', 'password', array('user_id' => $user['id'])) ?>" autocomplete="off">
2014-10-22 19:59:09 +02:00
<?= Helper\form_hidden('id', $values) ?>
<?= Helper\form_csrf() ?>
2014-12-22 19:15:38 +01:00
<div class="alert alert-error">
<?= Helper\form_label(t('Current password for the user "%s"', Helper\get_username()), 'current_password') ?>
<?= Helper\form_password('current_password', $values, $errors) ?><br/>
</div>
2014-10-22 19:59:09 +02:00
<?= 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">
2014-12-22 19:15:38 +01:00
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
<?= t('or') ?>
<?= Helper\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>