blob: 587332b3765d32d036813b16ea965a1cf971ee82 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php
/**
* @var Admin_ContentTermsOfUseController $controller
* @var ContentTermsOfUse $entry
*/
?>
<form class="default" method="post" action="<?= $controller->link_for('admin/content_terms_of_use/store?id=' . $entry->id) ?>">
<?= CSRFProtection::tokenTag() ?>
<fieldset>
<legend><?= _('Grunddaten') ?></legend>
<? if ($entry->isNew()): ?>
<label>
<?= _('ID') ?>
<input type="text" name="entry_id" value="<?= htmlReady($entry->id) ?>">
</label>
<? else: ?>
<input type="hidden" name="entry_id" value="<?= htmlReady($entry->id) ?>">
<? endif ?>
<label>
<?= _('Name') ?>
<?= I18N::input('name', $entry->name)?>
</label>
<label>
<?= _('Bedingung zum Herunterladen') ?>
<select name="download_condition">
<? foreach (ContentTermsOfUse::getConditions() as $condition_id => $description): ?>
<option value="<?= htmlReady($condition_id) ?>" <? if ($entry->download_condition == $condition_id) echo 'selected'; ?>>
<?= htmlReady($description) ?>
</option>
<? endforeach; ?>
</select>
</label>
<label>
<?= _('Symbol-Name oder URL') ?>
<input type="text" name="icon" value="<?= htmlReady($entry->icon) ?>">
</label>
</fieldset>
<fieldset>
<legend><?= _('Zusätzliche Angaben') ?></legend>
<label>
<?= _('Position') ?>
<input type="number" name="position" value="<?= htmlReady($entry->position) ?>">
</label>
<label>
<input type="checkbox" name="is_default" value="1"
<? if ($entry->is_default) echo 'checked'; ?>>
<?= _('Standardlizenz bei neuen Dateien') ?>
</label>
<label>
<?= _('Beschreibung') ?>
<?= I18N::textarea('description', $entry->description)?>
</label>
<label>
<?= _('Hinweise zur Nutzung') ?>
<?= I18N::textarea('student_description', $entry->student_description)?>
</label>
</fieldset>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Speichern')) ?>
<?= Studip\LinkButton::createCancel(
_('Abbrechen'),
$controller->url_for('admin/content_terms_of_use/index')
) ?>
</footer>
</form>
|