summaryrefslogtreecommitdiff
path: root/app/Template/task_move_position/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-04 20:03:24 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-04 20:03:24 -0400
commit21f8cebe855aaaf0e6ff6b38a032216df8bdb8c6 (patch)
treeab0f76925b66d89a792b5d11513c97e806d65976 /app/Template/task_move_position/show.php
parentf9bca15b0b7e10e1410dfb000d9ddf862d8c0c9d (diff)
Add new Vue.js component to handle submit and cancel buttons
Diffstat (limited to 'app/Template/task_move_position/show.php')
-rw-r--r--app/Template/task_move_position/show.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/Template/task_move_position/show.php b/app/Template/task_move_position/show.php
index 49b49164..83cb3129 100644
--- a/app/Template/task_move_position/show.php
+++ b/app/Template/task_move_position/show.php
@@ -30,11 +30,12 @@
<label><input type="radio" value="after" v-model="positionChoice"><?= t('Insert after this task') ?></label>
</div>
- <div class="form-actions">
- <input type="button" value="<?= t('Save') ?>" class="btn btn-blue" @click="onSubmit">
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
- </div>
+ <submit-cancel
+ label-button="<?= t('Save') ?>"
+ label-or="<?= t('or') ?>"
+ label-cancel="<?= t('cancel') ?>"
+ :callback="onSubmit">
+ </submit-cancel>
</script>
<task-move-position