blob: ed6410adfec72adabde4b431df55aca77aa2a324 (
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
|
<form action="<?= $controller->save($action) ?>" method="post" class="default">
<?= CSRFProtection::tokenTag() ?>
<fieldset>
<legend>
<?= sprintf(_('Log-Aktion %s bearbeiten'), htmlReady($action->name)) ?>
</legend>
<label>
<?= _('Beschreibung') ?>
<input type="text" name="description"
value="<?= htmlReady(Request::get('description', $action->description)) ?>">
</label>
<label>
<?= _('Template') ?>
<input required type="text" name="info_template"
value="<?= htmlReady(Request::get('info_template', $action->info_template)) ?>">
</label>
<label>
<input type="checkbox" name="active" value="1"
<? if (Request::int('active', $action->active)) echo 'checked'; ?>>
<?= _('Aktiv') ?>
</label>
<label>
<?= _('Ablaufzeit in Tagen') ?>
(<?= _('optional') ?>, <?= _('0 = keine Ablaufzeit') ?>)
<input type="number" class="size-s" name="expires" min="0"
value="<?= Request::int('expires', floor($action->expires / 86400)) ?>">
</label>
</fieldset>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Speichern'), 'save', [
'data-dialog' => 'reload-on-close',
]) ?>
<?= Studip\LinkButton::createCancel(
_('Abbrechen'),
$controller->adminURL()
) ?>
</footer>
</form>
|