summaryrefslogtreecommitdiff
path: root/app/Template/subtask_restriction
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-04 21:38:53 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-04 21:38:53 -0500
commit0f2b46dd6a9a1dc17768de2c415f382df95142e8 (patch)
tree55191fce45c7c06b7d2b45834ea4151745c3db77 /app/Template/subtask_restriction
parent346151e103431e8de12520b26daae10676b8faf5 (diff)
Do not refresh the whole page when changing subtask status (work in progress)
Diffstat (limited to 'app/Template/subtask_restriction')
-rw-r--r--app/Template/subtask_restriction/popover.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Template/subtask_restriction/popover.php b/app/Template/subtask_restriction/popover.php
new file mode 100644
index 00000000..e80d6b6d
--- /dev/null
+++ b/app/Template/subtask_restriction/popover.php
@@ -0,0 +1,17 @@
+<div class="page-header">
+ <h2><?= t('You already have one subtask in progress') ?></h2>
+</div>
+<form class="popover-form" action="<?= $this->url->href('SubtaskRestriction', 'update', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id'])) ?>" method="post">
+
+ <?= $this->form->csrf() ?>
+
+ <p><?= t('Select the new status of the subtask: "%s"', $subtask_inprogress['title']) ?></p>
+ <?= $this->form->radios('status', $status_list) ?>
+ <?= $this->form->hidden('id', $subtask_inprogress) ?>
+
+ <div class="form-actions">
+ <input type="submit" value="<?= t('Save') ?>" class="btn btn-red">
+ <?= t('or') ?>
+ <a href="#" class="close-popover"><?= t('cancel') ?></a>
+ </div>
+</form> \ No newline at end of file