From bceb11b420269575834e7b1ab137cc75a200ff3a Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 24 Oct 2019 14:08:23 +0200 Subject: [PATCH] Added INITIAL FILTER to LA akzeptieren Initial filter is: erteilte LA. Now these rows are presented to the user when loading the page. --- .../views/lehre/lehrauftrag/acceptLehrauftrag.php | 13 +++++++++++++ .../lehre/lehrauftrag/acceptLehrauftragData.php | 1 + 2 files changed, 14 insertions(+) diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index 1c039d42a..201ede78b 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -152,6 +152,19 @@ $this->load->view( return parseFloat(rowValue) == headerValue; } + // ----------------------------------------------------------------------------------------------------------------- + // Custom filters + // ----------------------------------------------------------------------------------------------------------------- + + // Filters erteilte initially + function func_initialFilter(){ + return [ + {field: 'bestellt', type: '!=', value: null}, // bestellt + {field: 'erteilt', type: '!=', value: null}, // AND erteilt + {field: 'akzeptiert', type: '=', value: null} // AND NOT akzeptiert + ] + } + // ----------------------------------------------------------------------------------------------------------------- // Tabulator table format functions // ----------------------------------------------------------------------------------------------------------------- diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftragData.php b/application/views/lehre/lehrauftrag/acceptLehrauftragData.php index 1b8170d9a..17ae6f406 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftragData.php @@ -327,6 +327,7 @@ $filterWidgetArray = array( selectableCheck: function(row){ return func_selectableCheck(row); }, + initialFilter: func_initialFilter(), footerElement: func_footerElement(), rowUpdated:function(row){ func_rowUpdated(row);