fix(formulario): checkboxes en fila horizontal con flex-wrap

Los checkboxes del campo tipo checkbox quedaban apilados verticalmente.
Se envuelven en d-flex flex-wrap gap-2 para quedar lado a lado.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-08 08:47:14 -05:00
co-authored by Claude Sonnet 4.6
parent ea1f0e30c9
commit 985bb7eace
+3 -1
View File
@@ -818,14 +818,16 @@ function esc2(mixed $v): string {
?>
<div class="campo-edit<?= $compact ? ' campo-full' : '' ?>">
<label><?= $label ?></label>
<div class="d-flex flex-wrap gap-2">
<?php foreach ($opts as $opt): ?>
<div class="form-check">
<div class="form-check form-check-inline m-0">
<input class="form-check-input" type="checkbox"
name="<?= esc2($cid) ?>[]" value="<?= esc2($opt) ?>"
<?= in_array($opt, $checkedArr, true) ? 'checked' : '' ?>>
<label class="form-check-label"><?= esc2($opt) ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<?php continue; endif;
if ($tipo === 'select'):