aboutsummaryrefslogtreecommitdiff
path: root/app/views/file/edit_license.php
blob: 0ca27b2c7882e503ee99ef9b3587b52b0ebc9a33 (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
<form action="<?= $controller->link_for('file/edit_license', $origin_folder_id) ?>"
      method="post" class="default" data-dialog="reload-on-close">
<input type="hidden" name="re_location" value="<?= htmlReady($re_location) ?>">
<? foreach ($file_refs as $file_ref) : ?>
    <input type="hidden" name="file_refs[]" value="<?= htmlReady($file_ref->id) ?>">
<? endforeach ?>

    <? if ($show_description_field): ?>
        <label>
            <?= _('Beschreibung') ?>
            <textarea name="description" placeholder="<?= _('Optionale Beschreibung') ?>"></textarea>
        </label>
    <? 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(
            _('Lizenzauswahl abbrechen'),
            $controller->url_for((in_array($folder->range_type, ['course', 'institute']) ? $folder->range_type . '/' : '') . 'files/index/' . $folder->id)
        ) ?>
    </footer>
</form>