diff --git a/application/views/lehre/anrechnung/adminAnrechnungData.php b/application/views/lehre/anrechnung/adminAnrechnungData.php index 675b038b7..e39e4086d 100644 --- a/application/views/lehre/anrechnung/adminAnrechnungData.php +++ b/application/views/lehre/anrechnung/adminAnrechnungData.php @@ -24,13 +24,15 @@ $filterWidgetArray = array( layout: "fitDataFill", persistentLayout:true, autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated - headerFilterPlaceholder: " ", index: "anrechnungszeitraum_id", // assign specific column as unique id (important for row indexing) selectable: false, // allow row selection tableWidgetHeader: true, tableBuilt: function(){ func_tableBuilt(this); }, + columnDefaults:{ + headerFilterPlaceholder:" ", + }, }', 'datasetRepFieldsDefs' => '{ anrechnungszeitraum_id: {visible: false, headerFilter:"input"}, diff --git a/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php b/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php index 903509ebe..c017e2387 100644 --- a/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php +++ b/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php @@ -219,9 +219,7 @@ $filterWidgetArray = array( selectableCheck: function(row){ return func_selectableCheck(row); }, - rowFormatter:function(row){ - func_rowFormatter(row,this); - }, + columnDefaults:{ //columnDefaults tooltip did not work diff --git a/application/views/lehre/anrechnung/reviewAnrechnungUebersichtData.php b/application/views/lehre/anrechnung/reviewAnrechnungUebersichtData.php index 8278cc297..2b7701bca 100644 --- a/application/views/lehre/anrechnung/reviewAnrechnungUebersichtData.php +++ b/application/views/lehre/anrechnung/reviewAnrechnungUebersichtData.php @@ -166,9 +166,6 @@ $filterWidgetArray = array( selectableCheck: function(row){ return func_selectableCheck(row); }, - rowFormatter:function(row){ - func_rowFormatter(row); - }, columnDefaults:{ //columnDefaults tooltip did not work diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftragData.php b/application/views/lehre/lehrauftrag/acceptLehrauftragData.php index d4f574312..fcc4759db 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftragData.php @@ -294,7 +294,6 @@ ORDER BY "akzeptiert" NULLS FIRST, "erteilt" NULLS LAST, "bestellt" $filterWidgetArray = array( 'query' => $query, - 'bootstrapVersion'=>5, 'tableUniqueId' => 'acceptLehrauftrag', 'requiredPermissions' => 'lehre/lehrauftrag_akzeptieren', 'datasetRepresentation' => 'tabulator', diff --git a/application/views/lehre/lehrauftrag/approveLehrauftragData.php b/application/views/lehre/lehrauftrag/approveLehrauftragData.php index 7af8619e8..7dd3822a6 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftragData.php @@ -305,7 +305,6 @@ ORDER BY "typ" DESC, "auftrag", "personalnummer" DESC, "lektor", "bestellt", "er $filterWidgetArray = array( 'query' => $query, - 'bootstrapVersion'=>5, 'tableUniqueId' => 'approveLehrauftrag', 'requiredPermissions' => 'lehre/lehrauftrag_erteilen', 'datasetRepresentation' => 'tabulator', diff --git a/application/views/lehre/lehrauftrag/cancelledLehrauftragData.php b/application/views/lehre/lehrauftrag/cancelledLehrauftragData.php index 219bd7cc5..f446cae25 100644 --- a/application/views/lehre/lehrauftrag/cancelledLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/cancelledLehrauftragData.php @@ -50,7 +50,6 @@ $query = ' $tableWidgetArray = array( 'query' => $query, - 'bootstrapVersion' => 5, 'tableUniqueId' => 'cancelledLehrauftrag', 'requiredPermissions' => 'lehre/lehrauftrag_akzeptieren', 'datasetRepresentation' => 'tabulator', diff --git a/application/views/lehre/lehrauftrag/orderLehrauftragData.php b/application/views/lehre/lehrauftrag/orderLehrauftragData.php index 5cc4fa594..f5b5cf6ce 100644 --- a/application/views/lehre/lehrauftrag/orderLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/orderLehrauftragData.php @@ -334,7 +334,6 @@ ORDER BY "typ" DESC, "auftrag", "personalnummer" DESC, "lektor", "bestellt" '; $filterWidgetArray = array( 'query' => $query, - 'bootstrapVersion'=>5, 'tableUniqueId' => 'orderLehrauftrag', 'requiredPermissions' => 'lehre/lehrauftrag_bestellen', 'datasetRepresentation' => 'tabulator', diff --git a/public/css/Tabulator5.css b/public/css/Tabulator5.css index a60b175d8..b10a307ae 100644 --- a/public/css/Tabulator5.css +++ b/public/css/Tabulator5.css @@ -39,6 +39,12 @@ z-index: 999999; } +/* classes for rows that are not selectable in the tabulator */ +.tabulator-row.tabulator-unselectable{ + color:var(--bs-gray-500); + +} + /* using bootstrap background classes to style the background color of tabulator rows */ /* bg-warning */ /* odd-rows */ diff --git a/public/css/lehre/anrechnung.css b/public/css/lehre/anrechnung.css index b19099f7e..50914aa1f 100644 --- a/public/css/lehre/anrechnung.css +++ b/public/css/lehre/anrechnung.css @@ -1,3 +1,4 @@ + .btn-w200 { width: 200px; diff --git a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js index a98149040..2d68a310b 100644 --- a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js +++ b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js @@ -184,28 +184,7 @@ var format_ectsSumBisherUndNeu = function (cell, formatterParams, onRendered) { ); }; -// Formats the rows -function func_rowFormatter(row) { - let status_kurzbz = row.getData().status_kurzbz; - // If status is anything else then 'Bearbeitet von STGL-Leitung' - if (status_kurzbz != ANRECHNUNGSTATUS_PROGRESSED_BY_STGL) { - // Disable new selection of updated rows - row.getElement().style["pointerEvents"] = "none"; - - // ...but leave url links selectable - row.getCell("dokument_bezeichnung").getElement().firstChild.style[ - "pointerEvents" - ] = "auto"; - if (row.getCell("details")) { - row.getCell("details").getElement().firstChild.style["pointerEvents"] = - "auto"; - } - - // Color background grey - row.getElement().style["background-color"] = COLOR_LIGHTGREY; // default - } -} // Formats row selectable/unselectable function func_selectableCheck(row) { diff --git a/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js b/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js index 91ff22801..d0004ba3a 100644 --- a/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js +++ b/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js @@ -88,20 +88,7 @@ function func_tableBuilt(table) { table.tabulator("redraw", true); } -// Formats the rows -function func_rowFormatter(row) { - let status_kurzbz = row.getData().status_kurzbz; - let empfehlungsberechtigt = row.getData().empfehlungsberechtigt; - row.getCells().forEach(function (cell) { - if ( - status_kurzbz != ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR || - empfehlungsberechtigt == "false" - ) { - row.getElement().style["background-color"] = COLOR_LIGHTGREY; // default - } - }); -} // Formats row selectable/unselectable function func_selectableCheck(row) { diff --git a/public/js/lehre/lehrauftrag/acceptLehrauftrag.js b/public/js/lehre/lehrauftrag/acceptLehrauftrag.js index 0e0cbb4a1..cba4b4f39 100644 --- a/public/js/lehre/lehrauftrag/acceptLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/acceptLehrauftrag.js @@ -149,8 +149,6 @@ function func_rowFormatter(row) { return; // bestellte + erteilte } else if (bestellt != null && erteilt != null && akzeptiert != null) { cell.getElement().classList.add("bg-success"); // akzeptierte - } else { - row.getElement().style["background-color"] = COLOR_LIGHTGREY; // default } }); } diff --git a/public/js/lehre/lehrauftrag/orderLehrauftrag.js b/public/js/lehre/lehrauftrag/orderLehrauftrag.js index 4dc266139..23acacd37 100644 --- a/public/js/lehre/lehrauftrag/orderLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/orderLehrauftrag.js @@ -207,9 +207,6 @@ function func_rowFormatter(row) { } else if (bestellt != null && erteilt != null && akzeptiert != null) { 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 }); }