2014-07-20 12:26:15 +02:00
|
|
|
<section id="main">
|
|
|
|
<div class="page-header">
|
|
|
|
<ul>
|
2014-12-22 19:15:38 +01:00
|
|
|
<li><i class="fa fa-table fa-fw"></i><?= Helper\a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?></li>
|
|
|
|
<li><i class="fa fa-check-square-o fa-fw"></i><?= Helper\a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?></li>
|
|
|
|
<li><i class="fa fa-dashboard fa-fw"></i><?= Helper\a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?></li>
|
2014-07-20 12:26:15 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<section>
|
|
|
|
<form method="get" action="?" autocomplete="off">
|
|
|
|
<?= Helper\form_hidden('controller', $values) ?>
|
|
|
|
<?= Helper\form_hidden('action', $values) ?>
|
|
|
|
<?= Helper\form_hidden('project_id', $values) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<?= Helper\form_text('search', $values, array(), array('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
|
2014-07-20 12:26:15 +02:00
|
|
|
<input type="submit" value="<?= t('Search') ?>" class="btn btn-blue"/>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php if (empty($tasks) && ! empty($values['search'])): ?>
|
|
|
|
<p class="alert"><?= t('Nothing found.') ?></p>
|
|
|
|
<?php elseif (! empty($tasks)): ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<?= Helper\template('task/table', array(
|
2014-11-23 20:13:38 +01:00
|
|
|
'tasks' => $tasks,
|
|
|
|
'categories' => $categories,
|
|
|
|
'columns' => $columns,
|
|
|
|
'pagination' => $pagination,
|
|
|
|
)) ?>
|
2014-07-20 12:26:15 +02:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</section>
|