From dc64cadc4a76ed3ab4a6c47f9decb3b47252a916 Mon Sep 17 00:00:00 2001 From: Cris Date: Wed, 25 Sep 2019 08:50:21 +0200 Subject: [PATCH] =?UTF-8?q?Changed:=20now=20rows=20are=20marked=20green=20?= =?UTF-8?q?only=20for=20accepted=20Lehrauftr=C3=A4ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is to achieve same behaviour for whole process Lehraufträge bestellen/erteilen/akzeptieren. --- .../views/lehre/lehrauftrag/approveLehrauftragData.php | 4 ++-- application/views/lehre/lehrauftrag/lehrauftragData.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/views/lehre/lehrauftrag/approveLehrauftragData.php b/application/views/lehre/lehrauftrag/approveLehrauftragData.php index 02c3a6e22..f27e65170 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftragData.php @@ -240,13 +240,13 @@ $filterWidgetArray = array( var data = row.getData(); // default (white): rows to be approved - // green: rows approved + // green: rows accepted // grey: all other if(row.getData().bestellt != null && row.getData().erteilt == null) { return; } - else if(row.getData().bestellt != null && row.getData().erteilt != null) + else if(row.getData().bestellt != null && row.getData().erteilt != null && row.getData().akzeptiert != null) { row.getElement().style["background-color"] = "#d1f1d196"; // green } diff --git a/application/views/lehre/lehrauftrag/lehrauftragData.php b/application/views/lehre/lehrauftrag/lehrauftragData.php index e6e2204da..5cf9bbb4c 100644 --- a/application/views/lehre/lehrauftrag/lehrauftragData.php +++ b/application/views/lehre/lehrauftrag/lehrauftragData.php @@ -240,13 +240,13 @@ $filterWidgetArray = array( var data = row.getData(); // default (white): rows to be ordered - // green: rows ordered + // green: rows accepted // grey: all other if(row.getData().bestellt == null) { return; } - else if(row.getData().bestellt != null) + else if(row.getData().bestellt != null && row.getData().erteilt != null && row.getData().akzeptiert != null) { row.getElement().style["background-color"] = "#d1f1d196"; // green }