fixed labels
This commit is contained in:
parent
74c9a1d02a
commit
ef8f2d8000
@ -82,6 +82,9 @@ $slugMapping = [];
|
|||||||
foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||||
$slugMapping[$row['mysql_column_name']] = $row['user_friendly_slug'];
|
$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) ----------------
|
// ---------------- FIXED FIELDS (from template_fixed_mapping) ----------------
|
||||||
$fixedStmt = $pdo->prepare("
|
$fixedStmt = $pdo->prepare("
|
||||||
@ -166,7 +169,8 @@ function fixedDefaultValue(array $f): string
|
|||||||
input.required-input,
|
input.required-input,
|
||||||
select.required-input {
|
select.required-input {
|
||||||
background-color: #f8d7da;
|
background-color: #f8d7da;
|
||||||
border-color: transparent;
|
border-color: #ced4da !important;
|
||||||
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
@ -496,11 +500,23 @@ function fixedDefaultValue(array $f): string
|
|||||||
z-index: 1049;
|
z-index: 1049;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Required empty cell: keep light red background BUT NO red border */
|
||||||
.grid-cell.missing-required {
|
.grid-cell.missing-required {
|
||||||
border: 2px solid red;
|
background-color: #ffe6e6 !important;
|
||||||
background-color: #ffe6e6;
|
|
||||||
|
/* 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 {
|
.dropdown-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user