fix(formulario): opciones de radio en fila horizontal en vez de vertical
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
ad5a4c834f
commit
7bb69f6efd
@@ -1216,14 +1216,16 @@ function _addExamWizardHtml(string $cid): string {
|
||||
?>
|
||||
<div class="campo-edit<?= ($compact && count($opts) > 3) ? ' campo-full' : '' ?>" data-campo-id="<?= esc2($cid) ?>">
|
||||
<label><?= $label ?></label>
|
||||
<div class="d-flex flex-wrap gap-3">
|
||||
<?php foreach ($opts as $opt): ?>
|
||||
<div class="form-check">
|
||||
<div class="form-check form-check-inline m-0">
|
||||
<input class="form-check-input" type="radio"
|
||||
name="<?= esc2($cid) ?>" value="<?= esc2($opt) ?>"
|
||||
<?= ($prefill === $opt ? 'checked' : '') . $req ?>>
|
||||
<label class="form-check-label"><?= esc2($opt) ?></label>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php if ($cid === '_c8j2g16'): ?>
|
||||
<?= _addExamWizardHtml($cid) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user