diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-01 19:32:51 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-01 19:32:51 -0400 |
commit | 471e46e70294684efc6d7edfc814d5b9ca04738b (patch) | |
tree | be35eb01fe0f9222406ec1c3c165a78d07397788 /app/Template/search | |
parent | 107699e5ed61175cc45eba6d59219d8a40946291 (diff) |
Add project and column attributes for advanced search
Diffstat (limited to 'app/Template/search')
-rw-r--r-- | app/Template/search/index.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/app/Template/search/index.php b/app/Template/search/index.php index 058f428d..47a926f4 100644 --- a/app/Template/search/index.php +++ b/app/Template/search/index.php @@ -15,7 +15,22 @@ <input type="submit" value="<?= t('Search') ?>" class="btn btn-blue"/> </form> - <?php if (! empty($values['search']) && $paginator->isEmpty()): ?> + <?php if (empty($values['search'])): ?> + <div class="listing"> + <h3><?= t('Advanced search') ?></h3> + <p><?= t('Example of query: ') ?><strong>project:"My project" assignee:me due:tomorrow</strong></p> + <ul> + <li><?= t('Search by project: ') ?><strong>project:"My project"</strong></li> + <li><?= t('Search by column: ') ?><strong>column:"Work in progress"</strong></li> + <li><?= t('Search by assignee: ') ?><strong>assignee:nobody</strong></li> + <li><?= t('Search by color: ') ?><strong>color:Blue</strong></li> + <li><?= t('Search by category: ') ?><strong>category:"Feature Request"</strong></li> + <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> + </div> + <?php elseif (! empty($values['search']) && $paginator->isEmpty()): ?> <p class="alert"><?= t('Nothing found.') ?></p> <?php elseif (! $paginator->isEmpty()): ?> <?= $this->render('search/results', array( |