summaryrefslogtreecommitdiff
path: root/app/Template/search
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-04 14:23:45 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-04 14:23:45 -0400
commitcf8aeea6af4077652479f36e1dc81d4de7c44291 (patch)
tree636348002fdb01173f87bfdb9aabf10453ab08ac /app/Template/search
parentb01eb12a6c300583d95a21ecf67d68e5b4956774 (diff)
Add filters helper for search form
Diffstat (limited to 'app/Template/search')
-rw-r--r--app/Template/search/index.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/app/Template/search/index.php b/app/Template/search/index.php
index 0c156bfd..4d7f5ed3 100644
--- a/app/Template/search/index.php
+++ b/app/Template/search/index.php
@@ -8,12 +8,15 @@
</ul>
</div>
- <form method="get" action="?" autocomplete="off">
- <?= $this->form->hidden('controller', $values) ?>
- <?= $this->form->hidden('action', $values) ?>
- <?= $this->form->text('search', $values, array(), array(empty($values['search']) ? 'autofocus' : '', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
- <input type="submit" value="<?= t('Search') ?>" class="btn btn-blue"/>
- </form>
+ <div class="search">
+ <form method="get" action="?" class="search">
+ <?= $this->form->hidden('controller', $values) ?>
+ <?= $this->form->hidden('action', $values) ?>
+ <?= $this->form->text('search', $values, array(), array(empty($values['search']) ? 'autofocus' : '', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
+ </form>
+
+ <?= $this->render('app/filters_helper') ?>
+ </div>
<?php if (empty($values['search'])): ?>
<div class="listing">
@@ -28,7 +31,7 @@
<li><?= t('Search by description: ') ?><strong>description:"Something to find"</strong></li>
<li><?= t('Search by due date: ') ?><strong>due:2015-07-01</strong></li>
</ul>
- <p><a href="http://kanboard.net/documentation/search" target="_blank"><?= t('More examples in the documentation') ?></a></p>
+ <p><i class="fa fa-external-link fa-fw"></i><a href="http://kanboard.net/documentation/search" target="_blank"><?= t('More examples in the documentation') ?></a></p>
</div>
<?php elseif (! empty($values['search']) && $paginator->isEmpty()): ?>
<p class="alert"><?= t('Nothing found.') ?></p>