fixed labels

This commit is contained in:
Claudio 2026-02-18 09:54:21 +01:00
parent 74c9a1d02a
commit ef8f2d8000

View File

@ -82,6 +82,9 @@ $slugMapping = [];
foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $row) {
$slugMapping[$row['mysql_column_name']] = $row['user_friendly_slug'];
}
// --- FIX LABELS ONLY (do not change keys) ---
$slugMapping['AnagraficaCertestObject'] = 'Object';
$slugMapping['AnagraficaCertestService'] = 'Service';
// ---------------- FIXED FIELDS (from template_fixed_mapping) ----------------
$fixedStmt = $pdo->prepare("
@ -166,7 +169,8 @@ function fixedDefaultValue(array $f): string
input.required-input,
select.required-input {
background-color: #f8d7da;
border-color: transparent;
border-color: #ced4da !important;
box-shadow: none !important;
}
input,
@ -496,11 +500,23 @@ function fixedDefaultValue(array $f): string
z-index: 1049;
}
/* Required empty cell: keep light red background BUT NO red border */
.grid-cell.missing-required {
border: 2px solid red;
background-color: #ffe6e6;
background-color: #ffe6e6 !important;
/* remove the red border you set */
border: 0 !important;
/* keep grid separators */
border-right: 1px solid #dee2e6 !important;
}
/* if it is the last column, don't force the right border */
.grid-cell.missing-required:last-child {
border-right: none !important;
}
.dropdown-select {
width: 100%;
box-sizing: border-box;