diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index 32f08679d..e0e67b44a 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -167,17 +167,17 @@ $this->load->view( data-bs-toggle="tooltip" data-bs-placement="left" title="p->t('ui', 'alleAnzeigen'); ?>"> + data-bs-toggle="tooltip" data-bs-placement="left" title="p->t('ui', 'nurErteilteAnzeigen'); ?>"> + + data-bs-target ="#collapseCancelledLehrauftraege" aria-expanded="false" aria-controls="collapseExample"> + diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftragHelp.php b/application/views/lehre/lehrauftrag/acceptLehrauftragHelp.php index 2e7ede0a8..531332231 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftragHelp.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftragHelp.php @@ -26,8 +26,8 @@ - - + + diff --git a/application/views/lehre/lehrauftrag/approveLehrauftrag.php b/application/views/lehre/lehrauftrag/approveLehrauftrag.php index b215df10c..2ffe549e5 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftrag.php @@ -7,7 +7,7 @@ $this->load->view( 'jqueryui1' => true, 'jquerycheckboxes1' => true, 'bootstrap3' => true, - 'fontawesome4' => true, + 'fontawesome6' => true, 'sbadmintemplate3' => true, 'tabulator5' => true, 'tabulator5JQuery' => true, @@ -190,12 +190,12 @@ $this->load->view(
- - - + + +
- +
diff --git a/application/views/lehre/lehrauftrag/approveLehrauftragHelp.php b/application/views/lehre/lehrauftrag/approveLehrauftragHelp.php index 0343da5f1..27eae8df2 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftragHelp.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftragHelp.php @@ -2,11 +2,11 @@
p->t('lehre', 'filterAlleBeiAnnahme'); ?>
- + - + - + @@ -48,10 +48,10 @@ - - - - + + + + diff --git a/application/views/lehre/lehrauftrag/orderLehrauftrag.php b/application/views/lehre/lehrauftrag/orderLehrauftrag.php index 64ad76c0f..12f5c25d0 100644 --- a/application/views/lehre/lehrauftrag/orderLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/orderLehrauftrag.php @@ -7,7 +7,7 @@ $this->load->view( 'jqueryui1' => true, 'jquerycheckboxes1' => true, 'bootstrap3' => true, - 'fontawesome4' => true, + 'fontawesome6' => true, 'sbadmintemplate3' => true, 'tabulator5' => true, 'tabulator5JQuery' => true, @@ -188,12 +188,12 @@ $this->load->view(
- - - + + +
- +
diff --git a/application/views/lehre/lehrauftrag/orderLehrauftragHelp.php b/application/views/lehre/lehrauftrag/orderLehrauftragHelp.php index 5ea991002..2cc51491c 100644 --- a/application/views/lehre/lehrauftrag/orderLehrauftragHelp.php +++ b/application/views/lehre/lehrauftrag/orderLehrauftragHelp.php @@ -2,11 +2,11 @@
p->t('lehre', 'lehrauftragStandardBestellprozessBestellen'); ?>
- + - + - + @@ -50,10 +50,10 @@ - - - - + + + + diff --git a/application/views/templates/FHC-Header.php b/application/views/templates/FHC-Header.php index ed9fa97b9..e0fa6867d 100644 --- a/application/views/templates/FHC-Header.php +++ b/application/views/templates/FHC-Header.php @@ -1,128 +1,145 @@ - - <?php printPageTitle($title); ?> - + + <?php printPageTitle($title); ?> - + - + - - // -------------------------------------------------------------------------------------------------------- - // From vendor folder + + - // CIS - if ($cis === true) generateCSSsInclude('public/css/cis_bs5.css'); - - // Eventually required CSS - generateCSSsInclude($customCSSs); // Eventually required CSS - ?> - - - - + + \ No newline at end of file diff --git a/public/css/Tabulator5.css b/public/css/Tabulator5.css index b10a307ae..3ce22e592 100644 --- a/public/css/Tabulator5.css +++ b/public/css/Tabulator5.css @@ -39,10 +39,9 @@ z-index: 999999; } -/* classes for rows that are not selectable in the tabulator */ -.tabulator-row.tabulator-unselectable{ - color:var(--bs-gray-500); - +/* classes for rows that are not selectable in the tabulator, except for rows that are used for calculation */ +.tabulator-row.tabulator-unselectable:not(.tabulator-calcs) { + color: #adb5bd !important; } /* using bootstrap background classes to style the background color of tabulator rows */ diff --git a/public/js/lehre/lehrauftrag/acceptLehrauftrag.js b/public/js/lehre/lehrauftrag/acceptLehrauftrag.js index fed97c4b6..7b803ef90 100644 --- a/public/js/lehre/lehrauftrag/acceptLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/acceptLehrauftrag.js @@ -9,26 +9,11 @@ // ----------------------------------------------------------------------------------------------------------------- const APP_ROOT = FHC_JS_DATA_STORAGE_OBJECT.app_root; -const COLOR_LIGHTGREY = "#f5f5f5"; - const TABLE_CANCELLED_LEHRAUFTRAG = "[tableuniqueid = cancelledLehrauftrag] #tableWidgetTabulator"; const TABLE_ACCEPT_LEHRAUFTRAG = "[tableuniqueid = acceptLehrauftrag] #tableWidgetTabulator"; -/** - * PNG icons used in status- and filter buttons - * Setting png icons is a workaround to use font-awsome 5.9.0 icons until system can be updated to newer font awsome version. - * */ -const ICON_LEHRAUFTRAG_ORDERED = - ''; -const ICON_LEHRAUFTRAG_APPROVED = - ''; -const ICON_LEHRAUFTRAG_CHANGED = - ''; -const ICON_LEHRAUFTRAG_CANCELLED = - ''; - // Fields that should not be provided in the column picker var tableWidgetBlacklistArray_columnUnselectable = [ "status", @@ -183,10 +168,10 @@ function func_tableBuilt(table) { // Add status column to table table.addColumn( { - title: "", + title: "", field: "status", width: 40, - align: "center", + hozAlign: "center", downloadTitle: "Status", formatter: status_formatter, tooltip: status_tooltip, @@ -313,13 +298,12 @@ status_formatter = function (cell, formatterParams, onRendered) { // commented icons would be so nice to have with fontawsome 5.11... if (bestellt != null && isNaN(vertrag_betrag)) { - return ""; // kein Vertrag + return ""; // kein Vertrag } else if ( (bestellt != null && betrag != vertrag_betrag) || (bestellt != null && stunden != vertrag_stunden) ) { - return ICON_LEHRAUFTRAG_CHANGED; // geaendert - // return ""; + return ""; } else if ( bestellt == null && erteilt == null && @@ -328,16 +312,13 @@ status_formatter = function (cell, formatterParams, onRendered) { ) { return ""; // neu } else if (bestellt != null && erteilt == null && akzeptiert == null) { - return ICON_LEHRAUFTRAG_ORDERED; // bestellt - // return ""; + return ""; } else if (bestellt != null && erteilt != null && akzeptiert == null) { - return ICON_LEHRAUFTRAG_APPROVED; // erteilt - // return ""; + return ""; } else if (bestellt != null && erteilt != null && akzeptiert != null) { - return ""; // akzeptiert - // return ""; + return ""; // akzeptiert } else if (is_storniert) { - return ICON_LEHRAUFTRAG_CANCELLED; // storniert + return ""; // storniert } else { return ""; // default } @@ -548,21 +529,6 @@ $(function () { ]); }); - // Set png-icons into filter-buttons - $(".btn-lehrauftrag").each(function () { - switch (this.id) { - case "show-ordered": - this.innerHTML = ICON_LEHRAUFTRAG_ORDERED; - break; - case "show-approved": - this.innerHTML = ICON_LEHRAUFTRAG_APPROVED; - break; - case "show-cancelled": - this.innerHTML = ICON_LEHRAUFTRAG_CANCELLED; - break; - } - }); - // De/activate and un/focus on clicked button $(".btn-lehrauftrag").click(function () { // De/activate and un/focus on clicked button diff --git a/public/js/lehre/lehrauftrag/approveLehrauftrag.js b/public/js/lehre/lehrauftrag/approveLehrauftrag.js index 9cb979c62..3d8993fc3 100644 --- a/public/js/lehre/lehrauftrag/approveLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/approveLehrauftrag.js @@ -8,19 +8,6 @@ // Global vars // ----------------------------------------------------------------------------------------------------------------- -const COLOR_LIGHTGREY = "#f5f5f5"; - -/** - * PNG icons used in status- and filter buttons - * Setting png icons is a workaround to use font-awsome 5.9.0 icons until system can be updated to newer font awsome version. - * */ -const ICON_LEHRAUFTRAG_ORDERED = - ''; -const ICON_LEHRAUFTRAG_APPROVED = - ''; -const ICON_LEHRAUFTRAG_CHANGED = - ''; - // Fields that should not be provided in the column picker var tableWidgetBlacklistArray_columnUnselectable = [ "status", @@ -179,8 +166,6 @@ function func_rowFormatter(row) { cell.getElement().classList.add("bg-success"); // akzeptiert } - // default color is already set in the Tabulator5.css file that gets loaded the Header flag tabulator5 - // row.getElement().style["background-color"] = COLOR_LIGHTGREY; // default }); } @@ -227,10 +212,10 @@ function func_tableBuilt(table) { table.tabulator( "addColumn", { - title: "", + title: "", field: "status", width: 40, - align: "center", + hozAlign: "center", downloadTitle: "Status", formatter: status_formatter, tooltip: status_tooltip, @@ -368,19 +353,15 @@ status_formatter = function (cell, formatterParams, onRendered) { (bestellt != null && stunden != vertrag_stunden) ) { // geaendert ((if betrag is 0 or null) - return ICON_LEHRAUFTRAG_CHANGED; // geaendert - // return ""; + return ""; } else if (bestellt == null && erteilt == null && akzeptiert == null) { return ""; // neu } else if (bestellt != null && erteilt == null && akzeptiert == null) { - return ICON_LEHRAUFTRAG_ORDERED; // bestellt - // return ""; + return ""; } else if (bestellt != null && erteilt != null && akzeptiert == null) { - return ICON_LEHRAUFTRAG_APPROVED; // erteilt - // return ""; + return ""; } else if (bestellt != null && erteilt != null && akzeptiert != null) { - return ""; // akzeptiert - // return ""; + return ""; // akzeptiert } else { return ""; // default } @@ -576,21 +557,6 @@ $(function () { ]); }); - // Set png-icons into filter-buttons - $(".btn-lehrauftrag").each(function () { - switch (this.id) { - case "show-ordered": - this.innerHTML = ICON_LEHRAUFTRAG_ORDERED; - break; - case "show-approved": - this.innerHTML = ICON_LEHRAUFTRAG_APPROVED; - break; - case "show-changed": - this.innerHTML = ICON_LEHRAUFTRAG_CHANGED; - break; - } - }); - // De/activate and un/focus on clicked button, En-/Disable 'Lehrauftrag erteilen' $(".btn-lehrauftrag").click(function () { // De/activate and un/focus on clicked button diff --git a/public/js/lehre/lehrauftrag/orderLehrauftrag.js b/public/js/lehre/lehrauftrag/orderLehrauftrag.js index 23acacd37..3356972f0 100644 --- a/public/js/lehre/lehrauftrag/orderLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/orderLehrauftrag.js @@ -8,19 +8,6 @@ // Global vars // ----------------------------------------------------------------------------------------------------------------- -const COLOR_LIGHTGREY = "#f5f5f5"; - -/** - * PNG icons used in status- and filter buttons - * Setting png icons is a workaround to use font-awsome 5.9.0 icons until system can be updated to newer font awsome version. - * */ -const ICON_LEHRAUFTRAG_ORDERED = - ''; -const ICON_LEHRAUFTRAG_APPROVED = - ''; -const ICON_LEHRAUFTRAG_CHANGED = - ''; - // Fields that should not be provided in the column picker var tableWidgetBlacklistArray_columnUnselectable = [ "status", @@ -192,8 +179,6 @@ function func_rowFormatter(row) { row.getCells().forEach(function (cell) { if (is_dummy) { cell.getElement().classList.add("bg-info"); // dummy lectors - } else if ((!is_mitarbeiter || !has_stunden) && akzeptiert == null) { - row.getElement().style["background-color"] = COLOR_LIGHTGREY; } else if ( (bestellt != null && betrag != vertrag_betrag) || (bestellt != null && @@ -256,10 +241,10 @@ function func_tableBuilt(table) { table.tabulator( "addColumn", { - title: "", + title: "", field: "status", width: 40, - align: "center", + hozAlign: "center", downloadTitle: "Status", formatter: status_formatter, tooltip: status_tooltip, @@ -406,18 +391,15 @@ status_formatter = function (cell, formatterParams, onRendered) { (bestellt != null && stunden != vertrag_stunden) ) { // geaendert ((if betrag is 0 or null) - return ICON_LEHRAUFTRAG_CHANGED; // geaendert - // return ""; + return ""; } else if (bestellt == null && erteilt == null && akzeptiert == null) { return ""; // neu } else if (bestellt != null && erteilt == null && akzeptiert == null) { - return ICON_LEHRAUFTRAG_ORDERED; // bestellt - // return ""; + return ""; } else if (bestellt != null && erteilt != null && akzeptiert == null) { - return ICON_LEHRAUFTRAG_APPROVED; // erteilt - // return ""; + return ""; } else if (bestellt != null && erteilt != null && akzeptiert != null) { - return ""; // akzeptiert + return ""; // akzeptiert } else { return ""; // default } @@ -654,21 +636,6 @@ $(function () { ]); }); - // Set png-icons into filter-buttons - $(".btn-lehrauftrag").each(function () { - switch (this.id) { - case "show-ordered": - this.innerHTML = ICON_LEHRAUFTRAG_ORDERED; - break; - case "show-approved": - this.innerHTML = ICON_LEHRAUFTRAG_APPROVED; - break; - case "show-changed": - this.innerHTML = ICON_LEHRAUFTRAG_CHANGED; - break; - } - }); - // De/activate and un/focus on clicked button, En-/Disable 'Lehrauftrag bestellen' $(".btn-lehrauftrag").click(function () { // De/activate and un/focus on clicked button
p->t('lehre', 'lehrauftragStandardBestellprozessBestellen'); ?>