diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-04 23:31:03 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-04 23:31:03 -0400 |
commit | 8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 (patch) | |
tree | a5dc3eff7408e8709d20ea92b926c5424d70c5f9 /app/Templates/config_application.php | |
parent | f531d57dc27b9d1568de0a10b19f69e8c2b2f156 (diff) |
Improve settings page and move some config parameters to the database
Diffstat (limited to 'app/Templates/config_application.php')
-rw-r--r-- | app/Templates/config_application.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/Templates/config_application.php b/app/Templates/config_application.php new file mode 100644 index 00000000..251a45dc --- /dev/null +++ b/app/Templates/config_application.php @@ -0,0 +1,23 @@ +<div class="page-header"> + <h2><?= t('Application settings') ?></h2> +</div> +<section> +<form method="post" action="<?= Helper\u('config', 'application') ?>" autocomplete="off"> + + <?= Helper\form_csrf() ?> + + <?= Helper\form_label(t('Application URL'), 'application_url') ?> + <?= Helper\form_text('application_url', $values, $errors, array('placeholder="http://example.kanboar.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/> + + <?= Helper\form_label(t('Timezone'), 'application_timezone') ?> + <?= Helper\form_select('application_timezone', $timezones, $values, $errors) ?><br/> + + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + </div> +</form> +</section>
\ No newline at end of file |