From 83f529008a77758afcdc25959637011c3b835324 Mon Sep 17 00:00:00 2001
From: Frederic Guillot <fred@kanboard.net>
Date: Mon, 7 Nov 2016 21:26:55 -0500
Subject: Handle modification of external tasks

---
 app/Template/external_task_modification/show.php | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 app/Template/external_task_modification/show.php

(limited to 'app/Template')

diff --git a/app/Template/external_task_modification/show.php b/app/Template/external_task_modification/show.php
new file mode 100644
index 00000000..79dd9556
--- /dev/null
+++ b/app/Template/external_task_modification/show.php
@@ -0,0 +1,26 @@
+<form class="popover-form" method="post" action="<?= $this->url->href('TaskModificationController', 'update', array('task_id' => $task['id'], 'project_id' => $project['id'])) ?>">
+    <?= $this->form->csrf() ?>
+    <?= $this->form->hidden('id', $values) ?>
+    <?= $this->form->hidden('project_id', $values) ?>
+
+    <?php if (! empty($error_message)): ?>
+        <p class="alert alert-error"><?= $this->text->e($error_message) ?></p>
+    <?php else: ?>
+        <?= $this->render($template, array(
+            'project' => $project,
+            'task' => $task,
+            'external_task' => $external_task,
+            'tags' => $tags,
+            'users_list' => $users_list,
+            'categories_list' => $categories_list,
+            'values' => $values,
+            'errors' => $errors,
+        )) ?>
+    <?php endif ?>
+
+    <div class="form-actions">
+        <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
+        <?= t('or') ?>
+        <?= $this->url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
+    </div>
+</form>
-- 
cgit v1.2.3