diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
commit | eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch) | |
tree | 511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Template/currency | |
parent | 65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff) |
Helpers refactoring
Diffstat (limited to 'app/Template/currency')
-rw-r--r-- | app/Template/currency/index.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/Template/currency/index.php b/app/Template/currency/index.php index 7839a142..f72c5700 100644 --- a/app/Template/currency/index.php +++ b/app/Template/currency/index.php @@ -24,12 +24,12 @@ <hr/> <h3><?= t('Change reference currency') ?></h3> <?php endif ?> -<form method="post" action="<?= $this->u('currency', 'reference') ?>" autocomplete="off"> +<form method="post" action="<?= $this->url->href('currency', 'reference') ?>" autocomplete="off"> - <?= $this->formCsrf() ?> + <?= $this->form->csrf() ?> - <?= $this->formLabel(t('Reference currency'), 'application_currency') ?> - <?= $this->formSelect('application_currency', $currencies, $config_values, $errors) ?><br/> + <?= $this->form->label(t('Reference currency'), 'application_currency') ?> + <?= $this->form->select('application_currency', $currencies, $config_values, $errors) ?><br/> <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> @@ -38,15 +38,15 @@ <hr/> <h3><?= t('Add a new currency rate') ?></h3> -<form method="post" action="<?= $this->u('currency', 'create') ?>" autocomplete="off"> +<form method="post" action="<?= $this->url->href('currency', 'create') ?>" autocomplete="off"> - <?= $this->formCsrf() ?> + <?= $this->form->csrf() ?> - <?= $this->formLabel(t('Currency'), 'currency') ?> - <?= $this->formSelect('currency', $currencies, $values, $errors) ?><br/> + <?= $this->form->label(t('Currency'), 'currency') ?> + <?= $this->form->select('currency', $currencies, $values, $errors) ?><br/> - <?= $this->formLabel(t('Rate'), 'rate') ?> - <?= $this->formText('rate', $values, $errors, array(), 'form-numeric') ?><br/> + <?= $this->form->label(t('Rate'), 'rate') ?> + <?= $this->form->text('rate', $values, $errors, array(), 'form-numeric') ?><br/> <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> |