Skip to content
Snippets Groups Projects
Commit fdb25c5a authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

delete unused template, re #519

parent cac75e5a
No related branches found
No related tags found
No related merge requests found
<form class="default" action="<?= URLHelper::getLink($form_action_url) ?>"
method="<?= htmlReady($form_method) ?>">
<? if ($form_method == 'post'): ?>
<?= CSRFProtection::tokenTag() ?>
<? endif ?>
<? foreach ($option_elements as $element): ?>
<? if ($element['type'] == 'checkbox'): ?>
<input type="checkbox" name="<?= htmlReady($element['name']) ?>"
value="<?= htmlReady($element['value']) ?>"
<?= $element['checked'] ? 'checked="checked"' : '' ?>>
<label for="<?= htmlReady($element['name']) ?>">
<?= htmlReady($element['label']) ?>
</label>
<? elseif ($element['type'] == 'radio'): ?>
<input type="checkbox" name="<?= htmlReady($element['name']) ?>"
value="<?= htmlReady($element['value']) ?>"
<?= $element['checked'] ? 'checked="checked"' : '' ?>>
<label for="<?= htmlReady($element['name']) ?>">
<?= htmlReady($element['label']) ?>
</label>
<? elseif ($element['type'] == 'select'): ?>
<label>
<?= htmlReady($element['label']) ?>
<select name="<?= htmlReady($element['name']) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($element['options'] as $key => $name): ?>
<option value="<?= htmlReady($key) ?>">
<?= htmlReady($name) ?>
</option>
<? endforeach ?>
</select>
</label>
<? endif ?>
<? endforeach ?>
<? if (!$submit_form_directly): ?>
<?= \Studip\Button::create(_('Setzen'), 'set') ?>
<? endif ?>
</form>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment