summaryrefslogtreecommitdiff
path: root/plugins/KanboardSearchPlugin/Template
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/KanboardSearchPlugin/Template')
-rw-r--r--plugins/KanboardSearchPlugin/Template/config/advanced-search-filter.php30
-rw-r--r--plugins/KanboardSearchPlugin/Template/config/sidebar.php4
2 files changed, 34 insertions, 0 deletions
diff --git a/plugins/KanboardSearchPlugin/Template/config/advanced-search-filter.php b/plugins/KanboardSearchPlugin/Template/config/advanced-search-filter.php
new file mode 100644
index 00000000..c8dddb8b
--- /dev/null
+++ b/plugins/KanboardSearchPlugin/Template/config/advanced-search-filter.php
@@ -0,0 +1,30 @@
+<div class="page-header">
+ <h2><?= t('Advanced Search Filter') ?></h2>
+</div>
+<form method="post" action="<?= $this->url->href('AdvancedSearchController', 'save', ['plugin' => 'KanboardSearchPlugin']) ?>" autocomplete="off">
+ <?= $this->form->csrf() ?>
+
+ <fieldset>
+ <?= $this->form->checkbox('comment_search', t('Enable "Search in Comment"'), 1, $values['comment_search'] == 1) ?>
+ </fieldset>
+ <fieldset>
+ <?= $this->form->checkbox('title_search', t('Enable "Search in Title"'), 1, $values['title_search'] == 1) ?>
+ </fieldset>
+
+ <fieldset>
+ <?= $this->form->checkbox('description_search', t('Enable "Search in Description"'), 1, $values['description_search'] == 1) ?>
+ </fieldset>
+
+ <fieldset>
+ <?= $this->form->checkbox('subtask_search', t('Enable "Search in Subtask Title"'), 1, $values['subtask_search'] == 1) ?>
+ </fieldset>
+ <fieldset>
+ <?= $this->form->checkbox('attachment_search', t('Enable "Search in Attachments"'), 1, $values['attachment_search'] == 1) ?>
+ </fieldset>
+
+ <?= $this->hook->render('template:config:advanced-search-filter', array('values' => $values, 'errors' => $errors)) ?>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
+ </div>
+</form> \ No newline at end of file
diff --git a/plugins/KanboardSearchPlugin/Template/config/sidebar.php b/plugins/KanboardSearchPlugin/Template/config/sidebar.php
new file mode 100644
index 00000000..6c2c9b5e
--- /dev/null
+++ b/plugins/KanboardSearchPlugin/Template/config/sidebar.php
@@ -0,0 +1,4 @@
+<li <?= $this->app->checkMenuSelection('AdvancedSearchController', 'index') ?>>
+ <?= $this->url->link(t('Advanced Search Filter settings'), 'AdvancedSearchController', 'index',
+ ['plugin' => 'KanboardSearchPlugin']) ?>
+</li>