aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-06-28 21:28:03 +0200
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-06-28 21:28:03 +0200
commitfdb25c5a063525a25b4f0b8f4ceb22421b437aad (patch)
tree6265ce1adf1ebca68f21caf0bd5a0e6ca38aa8af /templates/sidebar
parentcac75e5aa8680d33db07b46074dcc0a87df81241 (diff)
delete unused template, re #519
Diffstat (limited to 'templates/sidebar')
-rw-r--r--templates/sidebar/options-widget-form.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/templates/sidebar/options-widget-form.php b/templates/sidebar/options-widget-form.php
deleted file mode 100644
index 5dc91f2..0000000
--- a/templates/sidebar/options-widget-form.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<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>