add css classe with bs3 legacy colors for bg-success and bg-warning and use them in acceptLehrauftrag cis page

This commit is contained in:
Harald Bamberger
2024-11-15 15:58:26 +01:00
parent 1e5d7e01af
commit 1b8980a0e2
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -142,3 +142,12 @@ h6, .h6 {
.fhc-container .tabulator .tabulator-cell {
border-right: 1px solid #dee2e6;
}
/* lehrauftrag begin */
.bg-success-bs3 {
background-color: #dff0d8 !important;
}
.bg-warning-bs3 {
background-color: #fcf8e3 !important;
}
/* lehrauftrag end */
@@ -129,11 +129,11 @@ function func_rowFormatter(row) {
(bestellt != null && betrag != vertrag_betrag) ||
(bestellt != null && stunden != vertrag_stunden)
) {
cell.getElement().classList.add("bg-warning"); // geaenderte
cell.getElement().classList.add("bg-warning-bs3"); // geaenderte
} else if (bestellt != null && erteilt != null && akzeptiert == null) {
return; // bestellte + erteilte
} else if (bestellt != null && erteilt != null && akzeptiert != null) {
cell.getElement().classList.add("bg-success"); // akzeptierte
cell.getElement().classList.add("bg-success-bs3"); // akzeptierte
}
});
}