Working on task kanban

This commit is contained in:
Hillel Coren 2017-12-19 21:31:23 +02:00
parent 648f6957e8
commit 9518f34fcb
2 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,12 @@ class TaskKanbanController extends BaseController
*/ */
public function index() public function index()
{ {
$tasks = Task::scope()->with(['project', 'client', 'task_status'])->orderBy('task_status_sort_order')->get(); $tasks = Task::scope()
->with(['project', 'client', 'task_status'])
->whereNull('invoice_id')
->orderBy('task_status_sort_order')
->get();
$statuses = TaskStatus::scope()->orderBy('sort_order')->get(); $statuses = TaskStatus::scope()->orderBy('sort_order')->get();
$projects = Project::scope()->get(); $projects = Project::scope()->get();
$clients = Client::scope()->get(); $clients = Client::scope()->get();

View File

@ -18,6 +18,7 @@
.kanban-column { .kanban-column {
background-color: #E9E9E9; background-color: #E9E9E9;
padding: 10px; padding: 10px;
padding-bottom: 14px;
height: 100%; height: 100%;
width: 230px; width: 230px;
margin-right: 12px; margin-right: 12px;
@ -27,6 +28,10 @@
cursor: pointer; cursor: pointer;
} }
.kanban-column-last {
background-color: #F8F8F8;
}
.kanban-column-header { .kanban-column-header {
font-weight: bold; font-weight: bold;
padding-bottom: 12px; padding-bottom: 12px;