diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-13 17:50:20 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-13 17:50:20 -0500 |
commit | 364382b1b58db8bf1bd2c8866e21c869a7a5d6d0 (patch) | |
tree | e1bdaf8c76bbb6036b3bb7a3a19e8cc1e2e99604 /app/Template/link/index.php | |
parent | 124f7cad284d7ce867666def5731ad34a9265e63 (diff) |
Add task links (Merge pull-request #610)
Diffstat (limited to 'app/Template/link/index.php')
-rw-r--r-- | app/Template/link/index.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Template/link/index.php b/app/Template/link/index.php new file mode 100644 index 00000000..0c19b614 --- /dev/null +++ b/app/Template/link/index.php @@ -0,0 +1,30 @@ +<div class="page-header"> + <h2><?= t('Link labels') ?></h2> +</div> + +<section> +<?php if (! empty($links)): ?> +<table> + <tr> + <th width="70%"><?= t('Link labels') ?></th> + <th><?= t('Actions') ?></th> + </tr> + <?php foreach ($links as $link): ?> + <tr> + <td><?= t($this->e($link['label'])) ?><?php if (isset($link['label_inverse']) && !empty($link['label_inverse'])): ?> | <?= t($this->e($link['label_inverse'])) ?><?php endif ?></td> + <td> + <ul> + <?= $this->a(t('Edit'), 'link', 'edit', array('link_id' => $link['link_id'], 'project_id' => $link['project_id'])) ?> + <?= t('or') ?> + <?= $this->a(t('Remove'), 'link', 'confirm', array('link_id' => $link['link_id'], 'project_id' => $link['project_id'])) ?> + </ul> + </td> + </tr> + <?php endforeach ?> +</table> +<?php else: ?> + <?= t('There is no link yet.') ?> +<?php endif ?> +</section> + +<?= $this->render('link/edit', array('values' => $values, 'errors' => $errors, 'project' => $project)) ?> |