From 5936476dd5edf7d3f1e9efad41d48b8ccdcfb765 Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 24 Oct 2019 14:19:05 +0200 Subject: [PATCH] Minor GUI optimizations . Changed status icon on header row . No mousepointer on unselectable geanderte LA in LA akzeptieren --- application/views/lehre/lehrauftrag/acceptLehrauftrag.php | 3 ++- application/views/lehre/lehrauftrag/approveLehrauftrag.php | 6 +----- application/views/lehre/lehrauftrag/orderLehrauftrag.php | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index 201ede78b..b5a89681c 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -189,6 +189,7 @@ $this->load->view( if (bestellt != null && (betrag != vertrag_betrag)) { cell.getElement().classList.add('bg-warning'); // geaenderte + row.getElement().style["pointerEvents"] = "none"; } else if(bestellt != null && erteilt != null && akzeptiert == null) { @@ -222,7 +223,7 @@ $this->load->view( // Add status column to table table.addColumn( { - title: "Status", + title: "", field: "status", width:40, align:"center", diff --git a/application/views/lehre/lehrauftrag/approveLehrauftrag.php b/application/views/lehre/lehrauftrag/approveLehrauftrag.php index 6f7094252..53842d1e4 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftrag.php @@ -268,7 +268,7 @@ $this->load->view( // Add status column to table table.addColumn( { - title: "Status", + title: "", field: "status", width:40, align:"center", @@ -602,10 +602,6 @@ $(function() { } }); - $("#download-cvs").click(function(){ - $('#filterTabulator').tabulator("download", "csv", "data.csv"); - }); - // Approve Lehrauftraege $("#approve-lehrauftraege").click(function(){ diff --git a/application/views/lehre/lehrauftrag/orderLehrauftrag.php b/application/views/lehre/lehrauftrag/orderLehrauftrag.php index 0406f0816..8d81d1578 100644 --- a/application/views/lehre/lehrauftrag/orderLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/orderLehrauftrag.php @@ -272,7 +272,7 @@ $this->load->view( // Add status column to table table.addColumn( { - title: "Status", + title: "", field: "status", width:40, align:"center", @@ -574,7 +574,7 @@ $(function() { ); }); - // Show only rows with ordered lehrauftraege + // Show only rows with akzeptierte lehrauftraege $("#show-accepted").click(function(){ $('#filterTabulator').tabulator('setFilter', [ @@ -585,7 +585,7 @@ $(function() { ); }); - // Show only rows with dummy lectors + // Show only rows with geaenderte lectors $("#show-changed").click(function(){ // needs custom filter to compare fields betrag and vertrag_betrag $('#filterTabulator').tabulator('setFilter', filter_showChanged);