fix(formulario): radio options en fila horizontal — override display:flex + fix form_cliente
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
7bb69f6efd
commit
8937a46362
+2
-2
@@ -598,12 +598,12 @@ function renderCampos(esquema, prefilled) {
|
||||
</div>` + wrapClose;
|
||||
} else if (c.tipo === 'radio') {
|
||||
const opts = (c.options||[]).map(o => `
|
||||
<div class="form-check">
|
||||
<div class="form-check form-check-inline me-3">
|
||||
<input class="form-check-input" type="radio" name="${c.id}" value="${esc(o)}"
|
||||
${o===val?'checked':''} ${isReadOnly?'disabled':''}>
|
||||
<label class="form-check-label">${esc(o)}</label>
|
||||
</div>`).join('');
|
||||
html += wrapOpen + `<div class="mb-3">${lbl}${opts}${linkedNote}</div>` + wrapClose;
|
||||
html += wrapOpen + `<div class="mb-3">${lbl}<div class="d-flex flex-wrap gap-1">${opts}</div>${linkedNote}</div>` + wrapClose;
|
||||
} else if (c.tipo === 'checkbox') {
|
||||
const vals = Array.isArray(val) ? val : [];
|
||||
const opts = (c.options||[]).map(o => `
|
||||
|
||||
@@ -633,6 +633,11 @@ function _addExamWizardHtml(string $cid): string {
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
}
|
||||
/* radios en fila: override display:flex → inline-flex */
|
||||
.campo-edit .d-flex .form-check {
|
||||
display: inline-flex;
|
||||
width: auto;
|
||||
}
|
||||
.campo-edit .form-check-input {
|
||||
width: 1.35em;
|
||||
height: 1.35em;
|
||||
|
||||
Reference in New Issue
Block a user