From ea6cdf23aa76f2250c1ab327a83377b1f9fbbf6a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 17 Dec 2017 20:59:10 +0200 Subject: [PATCH] Working on task kanban --- app/Http/Controllers/TaskKanbanController.php | 5 +- resources/views/tasks/kanban.blade.php | 61 +++++++++++++------ 2 files changed, 48 insertions(+), 18 deletions(-) diff --git a/app/Http/Controllers/TaskKanbanController.php b/app/Http/Controllers/TaskKanbanController.php index e0e1397be631..dac34c9fca36 100644 --- a/app/Http/Controllers/TaskKanbanController.php +++ b/app/Http/Controllers/TaskKanbanController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use App\Models\Task; use App\Models\TaskStatus; class TaskKanbanController extends BaseController @@ -11,9 +12,10 @@ class TaskKanbanController extends BaseController */ public function index() { - // check initial statuses exist + $tasks = Task::scope()->get(); $stauses = TaskStatus::scope()->get(); + // check initial statuses exist if (! $stauses->count()) { $stauses = []; $defaults = [ @@ -34,6 +36,7 @@ class TaskKanbanController extends BaseController $data = [ 'title' => trans('texts.kanban'), 'statuses' => $stauses, + 'tasks' => $tasks, ]; return view('tasks.kanban', $data); diff --git a/resources/views/tasks/kanban.blade.php b/resources/views/tasks/kanban.blade.php index 2708ad018d65..7244f6979fde 100644 --- a/resources/views/tasks/kanban.blade.php +++ b/resources/views/tasks/kanban.blade.php @@ -43,11 +43,16 @@ padding-bottom: 3px; } + .kanban-column-row { + margin-bottom: -8px; + } + .kanban-column-row .view div { padding: 8px; } .kanban-column textarea { + resize: vertical; width: 100%; padding-left: 8px; padding-top: 8px; @@ -72,7 +77,10 @@ @section('content')