diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-28 11:28:50 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-28 11:28:50 -0500 |
commit | 34d7450d3c13342715e90ec21bceaa13e1baa876 (patch) | |
tree | a2d8f2f22ad3fe9b56f01fe2db0357f9b963e660 /app/Template/user/password.php | |
parent | 88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (diff) |
Template helpers refactoring
Diffstat (limited to 'app/Template/user/password.php')
-rw-r--r-- | app/Template/user/password.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/Template/user/password.php b/app/Template/user/password.php index 76e0ab15..14de0d42 100644 --- a/app/Template/user/password.php +++ b/app/Template/user/password.php @@ -2,25 +2,25 @@ <h2><?= t('Password modification') ?></h2> </div> -<form method="post" action="<?= Helper\u('user', 'password', array('user_id' => $user['id'])) ?>" autocomplete="off"> +<form method="post" action="<?= $this->u('user', 'password', array('user_id' => $user['id'])) ?>" autocomplete="off"> - <?= Helper\form_hidden('id', $values) ?> - <?= Helper\form_csrf() ?> + <?= $this->formHidden('id', $values) ?> + <?= $this->formCsrf() ?> <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/> + <?= $this->formLabel(t('Current password for the user "%s"', $this->getFullname()), 'current_password') ?> + <?= $this->formPassword('current_password', $values, $errors) ?><br/> </div> - <?= Helper\form_label(t('New password for the user "%s"', Helper\get_username($user)), 'password') ?> - <?= Helper\form_password('password', $values, $errors) ?><br/> + <?= $this->formLabel(t('New password for the user "%s"', $this->getFullname($user)), 'password') ?> + <?= $this->formPassword('password', $values, $errors) ?><br/> - <?= Helper\form_label(t('Confirmation'), 'confirmation') ?> - <?= Helper\form_password('confirmation', $values, $errors) ?><br/> + <?= $this->formLabel(t('Confirmation'), 'confirmation') ?> + <?= $this->formPassword('confirmation', $values, $errors) ?><br/> <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> <?= t('or') ?> - <?= Helper\a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> + <?= $this->a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> </div> </form> |