Skip to content
Snippets Groups Projects
Commit e40d838a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

restructure html in order to prevent display glitches, fixes #618

parent 4b27e24b
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
</p> </p>
<h3><?= _('SQL-Daten einspielen') ?></h3> <h3><?= _('SQL-Daten einspielen') ?></h3>
<ul class="list-unstyled"> <ul>
<?php $i = 0; foreach ($files as $file => $description): ?> <?php $i = 0; foreach ($files as $file => $description): ?>
<li> <li>
<label for="option-<?= $i ?>" class="plain">
<?php if (in_array($file, $required)): ?> <?php if (in_array($file, $required)): ?>
<input type="hidden" name="files[]" value="<?= htmlReady($file) ?>"> <input type="hidden" name="files[]" value="<?= htmlReady($file) ?>">
<input type="checkbox" checked disabled> <input type="checkbox" checked disabled>
...@@ -16,11 +17,10 @@ ...@@ -16,11 +17,10 @@
<input type="checkbox" name="files[]" value="<?= htmlReady($file) ?>" <input type="checkbox" name="files[]" value="<?= htmlReady($file) ?>"
id="option-<?= $i ?>"> id="option-<?= $i ?>">
<?php endif; ?> <?php endif; ?>
<label for="option-<?= $i ?>">
<strong <?php if (in_array($file, $required)): ?>class="required"<?php endif; ?>> <strong <?php if (in_array($file, $required)): ?>class="required"<?php endif; ?>>
<?= htmlReady($description) ?> <?= htmlReady($description) ?>
</strong> </strong><br>
(<?= htmlReady($file) ?>) <?= htmlReady($file) ?>
</label> </label>
</li> </li>
<?php $i += 1; endforeach; ?> <?php $i += 1; endforeach; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment