aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/location/select_category.php
blob: 44ac926998719ea5b031d5e58be265b7f70a0d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * @var ResourceCategory[] $categories
 * @var Resources_LocationController $controller
 */
?>
<? if ($categories) : ?>
<form method="get" action="<?= $controller->add() ?>" class="default"
      data-dialog="size=auto">
    <label>
        <?= _('Standortkategorie') ?>
        <select name="category_id" required>
            <option value=""><?= _('Bitte eine Standortkategorie auswählen:') ?></option>
            <? foreach ($categories as $category) : ?>
                <option value="<?= $category->id ?>">
                    <?= htmlReady($category->name) ?>
                </option>
            <? endforeach ?>
        </select>
    </label>
    <footer data-dialog-button>
        <?= Studip\Button::createAccept(_('Auswählen')) ?>
    </footer>
<? endif ?>