diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-01 18:28:32 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-01 18:28:32 -0400 |
commit | 31f3de9646e4e54db431be6a6751e931be43d995 (patch) | |
tree | 389cd7f69aaf7563389b6e4793a1dd6bb3a57e06 /app/Template/search/index.php | |
parent | 109a2a2e25e0e170d3df3860d054f82f70e78c4d (diff) |
Add global search section
Diffstat (limited to 'app/Template/search/index.php')
-rw-r--r-- | app/Template/search/index.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/Template/search/index.php b/app/Template/search/index.php new file mode 100644 index 00000000..058f428d --- /dev/null +++ b/app/Template/search/index.php @@ -0,0 +1,26 @@ +<section id="main"> + <div class="page-header"> + <ul> + <li> + <i class="fa fa-folder fa-fw"></i> + <?= $this->url->link(t('All projects'), 'project', 'index') ?> + </li> + </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('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?> + <input type="submit" value="<?= t('Search') ?>" class="btn btn-blue"/> + </form> + + <?php if (! empty($values['search']) && $paginator->isEmpty()): ?> + <p class="alert"><?= t('Nothing found.') ?></p> + <?php elseif (! $paginator->isEmpty()): ?> + <?= $this->render('search/results', array( + 'paginator' => $paginator, + )) ?> + <?php endif ?> + +</section>
\ No newline at end of file |