summaryrefslogtreecommitdiff
path: root/plugins/Calendar/Template/config
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Calendar/Template/config')
-rw-r--r--plugins/Calendar/Template/config/calendar.php31
-rw-r--r--plugins/Calendar/Template/config/sidebar.php3
2 files changed, 34 insertions, 0 deletions
diff --git a/plugins/Calendar/Template/config/calendar.php b/plugins/Calendar/Template/config/calendar.php
new file mode 100644
index 00000000..2221294b
--- /dev/null
+++ b/plugins/Calendar/Template/config/calendar.php
@@ -0,0 +1,31 @@
+<div class="page-header">
+ <h2><?= t('Calendar settings') ?></h2>
+</div>
+<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('plugin' => 'Calendar')) ?>" autocomplete="off">
+
+ <?= $this->form->csrf() ?>
+
+ <fieldset>
+ <legend><?= t('Project calendar view') ?></legend>
+ <?= $this->form->radios('calendar_project_tasks', array(
+ 'date_creation' => t('Show tasks based on the creation date'),
+ 'date_started' => t('Show tasks based on the start date'),
+ ),
+ $values
+ ) ?>
+ </fieldset>
+
+ <fieldset>
+ <legend><?= t('User calendar view') ?></legend>
+ <?= $this->form->radios('calendar_user_tasks', array(
+ 'date_creation' => t('Show tasks based on the creation date'),
+ 'date_started' => t('Show tasks based on the start date'),
+ ),
+ $values
+ ) ?>
+ </fieldset>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
+ </div>
+</form>
diff --git a/plugins/Calendar/Template/config/sidebar.php b/plugins/Calendar/Template/config/sidebar.php
new file mode 100644
index 00000000..040f4807
--- /dev/null
+++ b/plugins/Calendar/Template/config/sidebar.php
@@ -0,0 +1,3 @@
+<li <?= $this->app->checkMenuSelection('ConfigController', 'show', 'Calendar') ?>>
+ <?= $this->url->link(t('Calendar settings'), 'ConfigController', 'show', array('plugin' => 'Calendar')) ?>
+</li> \ No newline at end of file