summaryrefslogtreecommitdiff
path: root/plugins/KanboardSearchPlugin/Template
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 11:34:53 +0100
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 11:34:53 +0100
commitb8fa0246803dab40cf57d40b45984c53046f2d55 (patch)
treedc92b167c7542137c385614a1d558e57669a4339 /plugins/KanboardSearchPlugin/Template
parent2a43146236fd8fb16f84398d85720ad84aa0a0b1 (diff)
Plugins directory and local modifications
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>