summaryrefslogtreecommitdiff
path: root/app/Template/link
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-08 11:29:41 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-08 11:29:41 -0500
commit348f4491ff3171d06888a868b22868ce2b8b1eab (patch)
tree6ecaaa8f139a17b634d992675b8aad23434d84a5 /app/Template/link
parentfebb9ade5bc6f4f11f98bc029ffe325fa6717f8f (diff)
Make icons clickable in menus
Diffstat (limited to 'app/Template/link')
-rw-r--r--app/Template/link/edit.php6
-rw-r--r--app/Template/link/index.php4
2 files changed, 3 insertions, 7 deletions
diff --git a/app/Template/link/edit.php b/app/Template/link/edit.php
index cb4f29e2..4be56573 100644
--- a/app/Template/link/edit.php
+++ b/app/Template/link/edit.php
@@ -13,9 +13,5 @@
<?= $this->form->label(t('Opposite label'), 'opposite_id') ?>
<?= $this->form->select('opposite_id', $labels, $values, $errors) ?>
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'LinkController', 'index') ?>
- </div>
+ <?= $this->modal->submitButtons() ?>
</form>
diff --git a/app/Template/link/index.php b/app/Template/link/index.php
index 70ead4a6..b0dcad1e 100644
--- a/app/Template/link/index.php
+++ b/app/Template/link/index.php
@@ -18,9 +18,9 @@
</td>
<td>
<ul>
- <?= $this->url->link(t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?>
+ <?= $this->modal->medium('edit', t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?>
<?= t('or') ?>
- <?= $this->url->link(t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?>
+ <?= $this->modal->confirm('trash-o', t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?>
</ul>
</td>
</tr>