blob: a9cf94e0f334ac641fb1e6e1fdd735380e2e285c (
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
|
<form action="<?= $controller->link_for('file/edit_license', $origin_folder_id ?? null) ?>"
method="post" class="default" data-dialog="reload-on-close">
<input type="hidden" name="re_location" value="<?= htmlReady($re_location) ?>">
<input type="hidden" name="to_plugin" value="<?= $plugin ? $plugin->getPluginName() : '' ?>">
<? foreach ($files as $file) : ?>
<input type="hidden" name="file_refs[]" value="<?= htmlReady($file->getId()) ?>">
<? endforeach ?>
<? if ($show_description_field): ?>
<fieldset>
<legend><?= _('Zusatzangaben') ?></legend>
<label>
<b><?= _('Beschreibung') ?></b>
<textarea name="description" placeholder="<?= _('Optionale Beschreibung') ?>"></textarea>
</label>
</fieldset>
<? endif ?>
<? if (count($files) === 1) : ?>
<fieldset>
<legend><?= _('Barrierefreiheit') ?></legend>
<label>
<input type="checkbox" name="is_accessible" value="1">
<?= _('Diese Datei ist barrierefrei.') ?>
</label>
<?= formatReady((string)Config::get()->ACCESSIBILITY_INFO_TEXT ?: '') ?>
</fieldset>
<? endif ?>
<?= $this->render_partial('file/_terms_of_use_select.php', [
'content_terms_of_use_entries' => $licenses,
'selected_terms_of_use_id' => $file_ref->content_terms_of_use_id ?? ''
]) ?>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Speichern')) ?>
<?= Studip\LinkButton::createCancel(
_('Abbrechen'),
$controller->url_for((in_array($folder->range_type, ['course', 'institute']) ? $folder->range_type . '/' : '') . 'files/index/' . $folder->id)
) ?>
</footer>
</form>
|