blob: 18edbdcf5cc75a39d3c9fd0517aa9aa7ea449221 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<form method="POST" class="default" name="new_room_request"
action="<?= $this->controller->link_for('course/room_requests/request_start') ?>"
<?= Request::isXhr() ? 'data-dialog="size=big"' : '' ?>>
<?= CSRFProtection::tokenTag() ?>
<fieldset>
<legend><?= _("Raumanfrage erstellen") ?></legend>
<? if (count($options)): ?>
<label>
<?= _("Art der Raumanfrage:") ?>
<select id="new_room_request_type" name="range_str">
<? foreach ($options as $one) : ?>
<option value="<?= $one['value'] ?>">
<?= htmlReady($one['name']) ?>
</option>
<? endforeach ?>
</select>
</label>
<div class="text-center" data-dialog-button>
</div>
<? else : ?>
<?= MessageBox::info(
_("In dieser Veranstaltung können keine weiteren Raumanfragen gestellt werden.")
) ?>
<? endif ?>
</fieldset>
<footer data-dialog-button>
<? if (count($options)): ?>
<?= Studip\Button::create(
_('Erstellen'),
'create_room_request'
) ?>
<?= Studip\LinkButton::createCancel(
_('Abbrechen'),
$controller->link_for('course/room_requests/index/' . $course_id)
) ?>
<? else: ?>
<?= Studip\LinkButton::create(
_('Zurück zur Übersicht'),
$controller->link_for('course/room_requests/index/' . $course_id),
['data-dialog' => 'size=big']
) ?>
<? endif ?>
</footer>
</form>
|