From 7b93c59f3f42491966da63f23ed28a7007621e60 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 2 May 2020 21:03:21 +0200 Subject: [PATCH] continue task edit impl. --- Models/Task.php | 25 +++---- Theme/Backend/task-create.tpl.php | 35 +++++---- Theme/Backend/task-single.tpl.php | 113 +++++++++++++++--------------- 3 files changed, 86 insertions(+), 87 deletions(-) diff --git a/Models/Task.php b/Models/Task.php index 75fa3aa..7fc32c2 100644 --- a/Models/Task.php +++ b/Models/Task.php @@ -796,18 +796,19 @@ class Task implements \JsonSerializable public function toArray() : array { return [ - 'id' => $this->id, - 'createdBy' => $this->createdBy, - 'createdAt' => $this->createdAt, - 'title' => $this->title, - 'description' => $this->description, - 'status' => $this->status, - 'type' => $this->type, - 'priority' => $this->priority, - 'due' => $this->due, - 'done' => $this->done, - 'elements' => $this->taskElements, - 'tags' => $this->tags, + 'id' => $this->id, + 'createdBy' => $this->createdBy, + 'createdAt' => $this->createdAt, + 'title' => $this->title, + 'description' => $this->description, + 'descriptionRaw' => $this->descriptionRaw, + 'status' => $this->status, + 'type' => $this->type, + 'priority' => $this->priority, + 'due' => $this->due, + 'done' => $this->done, + 'elements' => $this->taskElements, + 'tags' => $this->tags, ]; } diff --git a/Theme/Backend/task-create.tpl.php b/Theme/Backend/task-create.tpl.php index 7e9d15d..eda6aa3 100644 --- a/Theme/Backend/task-create.tpl.php +++ b/Theme/Backend/task-create.tpl.php @@ -22,11 +22,10 @@ echo $this->getData('nav')->render(); ?>
-
-

getHtml('Task') ?>

- -
-
+
+ +
getHtml('Task') ?>
+
@@ -50,20 +49,20 @@ echo $this->getData('nav')->render(); ?>
getData('editor')->render('task-editor'); ?>
getData('editor')->getData('text')->render('task-editor', 'plain', 'fTask'); ?> -
- -
- -
-
+
+
+ + +
+ +
-
-

getHtml('Media') ?>

- -
+
+
getHtml('Media') ?>
+
@@ -78,9 +77,9 @@ echo $this->getData('nav')->render(); ?>
-
-
-
+
+ + diff --git a/Theme/Backend/task-single.tpl.php b/Theme/Backend/task-single.tpl.php index 5738681..a687cfc 100644 --- a/Theme/Backend/task-single.tpl.php +++ b/Theme/Backend/task-single.tpl.php @@ -31,60 +31,57 @@ echo $this->getData('nav')->render(); ?>
-
-
- isEditable()) : ?> - - - - - - + + + + +
printHtml($task->getTitle()); ?>
+
getHtml('S' . $task->getStatus()) ?>
printHtml($task->getCreatedBy()->getName1()); ?> - printHtml($task->getCreatedAt()->format('Y/m/d H:i')); ?>
-
-
-

printHtml($task->getTitle()); ?>

-
-
-
getDescription(); ?>
-
+
getDescription(); ?>
- -
- - getName(); ?> - + +
+ + getName(); ?> + +
+
- - -
+ isEditable()) : ?> +
getPriority() === TaskPriority::NONE) : ?> @@ -103,7 +100,8 @@ echo $this->getData('nav')->render(); ?>
-
+ +
@@ -125,7 +123,7 @@ echo $this->getData('nav')->render(); ?>
-
+
@@ -183,7 +181,7 @@ echo $this->getData('nav')->render(); ?> getDescription() !== '') : ?>
-
getDescription(); ?>
+
getDescription(); ?>
@@ -238,7 +236,7 @@ echo $this->getData('nav')->render(); ?> getHtml('ForwardedTo') ?> - printHtml($to->getRelation()->getName1()); ?> + printHtml($to->getRelation()->getName1()); ?> printHtml($to->getRelation()->getName()); ?> @@ -251,11 +249,11 @@ echo $this->getData('nav')->render(); ?>
-
-
-
+
+ +
getHtml('Message') ?>
+
-
getData('editor')->render('task-editor'); ?>
getData('editor')->getData('text')->render( 'task-editor', @@ -296,12 +294,13 @@ echo $this->getData('nav')->render(); ?>
-
- -
- -
-
+
+
+ + +
+ +