diff options
Diffstat (limited to 'App/ajax/gettask.php')
-rw-r--r-- | App/ajax/gettask.php | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/App/ajax/gettask.php b/App/ajax/gettask.php index 2f386c1..ff55e86 100644 --- a/App/ajax/gettask.php +++ b/App/ajax/gettask.php @@ -17,40 +17,6 @@ if(!isset($_POST['task'])){ $s = new Select(); $task = $s->getAllTaskWithStatus($_POST['task']); $tl = $s->getAllStatusLevels(); - ?> - <div class="well well-xs"> - <h3> - <span class="pull-left"><?php echo $task->title; ?></span> - <div class="btn-group"> - <div class="btn-toolbar"> - <div class="btn-group"> - <a href="bootstrap-elements.html" data-target="#" class="btn btn-raised btn-<?php echo $task->style_class;?> dropdown-toggle" - data-toggle="dropdown"> - <?php echo $task->level ;?> - <span class="caret"></span> - </a> - <ul class="dropdown-menu"> - <?php - foreach ($status_level as $tl) { - if ($task->level != $tl->plain_text) { - ?> - <li><a - href="<?php echo ROOT . "/App/formhandler/changestatus.php?task=" . $task->id . "&status=" . $tl->id; ?>"><span - class="text-<?php echo $tl->style_class; ?>"><?php echo $tl->plain_text; ?></span></a></li> - <?php - } - } - - ?> - </ul> - </div> - </div> - </div> - </h3> - <p class="text-primary"> - <?php echo $task->description; ?> - </p> - <p class="text-muted small"> - Uppdaterad <?php echo $task->stamp . " av " . $task->user;?> - </p> - </div> + $taskWriter = new App\Task($task); + $taskWriter->setChangeableStatuses($status_level); + $taskWriter->printTask(); |