summaryrefslogtreecommitdiff
path: root/app/Templates/config_board.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-04 23:31:03 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-04 23:31:03 -0400
commit8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 (patch)
treea5dc3eff7408e8709d20ea92b926c5424d70c5f9 /app/Templates/config_board.php
parentf531d57dc27b9d1568de0a10b19f69e8c2b2f156 (diff)
Improve settings page and move some config parameters to the database
Diffstat (limited to 'app/Templates/config_board.php')
-rw-r--r--app/Templates/config_board.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/Templates/config_board.php b/app/Templates/config_board.php
new file mode 100644
index 00000000..f260d084
--- /dev/null
+++ b/app/Templates/config_board.php
@@ -0,0 +1,29 @@
+<div class="page-header">
+ <h2><?= t('Board settings') ?></h2>
+</div>
+<section>
+<form method="post" action="<?= Helper\u('config', 'board') ?>" autocomplete="off">
+
+ <?= Helper\form_csrf() ?>
+
+ <?= Helper\form_label(t('Task highlight period'), 'board_highlight_period') ?>
+ <?= Helper\form_number('board_highlight_period', $values, $errors) ?><br/>
+ <p class="form-help"><?= t('Period (in second) to consider a task was modified recently (0 to disable, 2 days by default)') ?></p>
+
+ <?= Helper\form_label(t('Refresh interval for public board'), 'board_public_refresh_interval') ?>
+ <?= Helper\form_number('board_public_refresh_interval', $values, $errors) ?><br/>
+ <p class="form-help"><?= t('Frequency in second (60 seconds by default)') ?></p>
+
+ <?= Helper\form_label(t('Refresh interval for private board'), 'board_private_refresh_interval') ?>
+ <?= Helper\form_number('board_private_refresh_interval', $values, $errors) ?><br/>
+ <p class="form-help"><?= t('Frequency in second (0 to disable this feature, 10 seconds by default)') ?></p>
+
+ <?= Helper\form_label(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?>
+ <?= Helper\form_text('board_columns', $values, $errors) ?><br/>
+ <p class="form-help"><?= t('Default values are "%s"', $default_columns) ?></p>
+
+ <div class="form-actions">
+ <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
+ </div>
+</form>
+</section> \ No newline at end of file