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/config/application.php | |
parent | 88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (diff) |
Template helpers refactoring
Diffstat (limited to 'app/Template/config/application.php')
-rw-r--r-- | app/Template/config/application.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/Template/config/application.php b/app/Template/config/application.php index c92975bc..26f3743e 100644 --- a/app/Template/config/application.php +++ b/app/Template/config/application.php @@ -2,22 +2,22 @@ <h2><?= t('Application settings') ?></h2> </div> <section> -<form method="post" action="<?= Helper\u('config', 'application') ?>" autocomplete="off"> +<form method="post" action="<?= $this->u('config', 'application') ?>" autocomplete="off"> - <?= Helper\form_csrf() ?> + <?= $this->formCsrf() ?> - <?= Helper\form_label(t('Application URL'), 'application_url') ?> - <?= Helper\form_text('application_url', $values, $errors, array('placeholder="http://example.kanboard.net/"')) ?><br/> + <?= $this->formLabel(t('Application URL'), 'application_url') ?> + <?= $this->formText('application_url', $values, $errors, array('placeholder="http://example.kanboard.net/"')) ?><br/> <p class="form-help"><?= t('Example: http://example.kanboard.net/ (used by email notifications)') ?></p> - <?= Helper\form_label(t('Language'), 'application_language') ?> - <?= Helper\form_select('application_language', $languages, $values, $errors) ?><br/> + <?= $this->formLabel(t('Language'), 'application_language') ?> + <?= $this->formSelect('application_language', $languages, $values, $errors) ?><br/> - <?= Helper\form_label(t('Timezone'), 'application_timezone') ?> - <?= Helper\form_select('application_timezone', $timezones, $values, $errors) ?><br/> + <?= $this->formLabel(t('Timezone'), 'application_timezone') ?> + <?= $this->formSelect('application_timezone', $timezones, $values, $errors) ?><br/> - <?= Helper\form_label(t('Date format'), 'application_date_format') ?> - <?= Helper\form_select('application_date_format', $date_formats, $values, $errors) ?><br/> + <?= $this->formLabel(t('Date format'), 'application_date_format') ?> + <?= $this->formSelect('application_date_format', $date_formats, $values, $errors) ?><br/> <p class="form-help"><?= t('ISO format is always accepted, example: "%s" and "%s"', date('Y-m-d'), date('Y_m_d')) ?></p> <div class="form-actions"> |