aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/location/select_category.php
blob: 02a2f779425ea618c50d5edd2a7e1533b2fef6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<? if ($categories) : ?>
<form method="get" action="<?= $controller->link_for('resources/location/add' . $room_id) ?>" 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 ?>