blob: 9a81d20649469cde27668ae74100f5cb3d6720be (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
<?php
/**
* @var Course_StatusgroupsController $controller
* @var Statusgruppen $group
*/
?>
<form class="default collapsable" action="<?= $controller->url_for('course/statusgroups/save', $group->id) ?>" method="post" data-secure>
<?= CSRFProtection::tokenTag() ?>
<fieldset>
<legend>
<?= _('Einstellungen') ?>
</legend>
<label>
<span class="required"><?= _('Name') ?></span>
<input type="text" name="name" size="75" maxlength="255" value="<?= htmlReady($group->name) ?>" required>
</label>
<label>
<?= _('Beschreibung') ?>
<textarea name="description"><?= htmlReady($group->description) ?></textarea>
</label>
<label>
<?= _('Gruppengröße') ?>
<input type="number" name="size" value="<?= intval($group->size) ?>" min="0">
</label>
<?php if ($group->isNew() || !$group->hasFolder()) : ?>
<label>
<input type="checkbox" name="makefolder" value="1">
<?= _('Dateiordner anlegen') ?>
</label>
<?php elseif ($group->hasFolder()) : ?>
<label>
<input type="checkbox" name="makefolder" value="1" checked>
<?= _('Zu dieser Gruppe gehört ein Dateiordner.') ?>
</label>
<?php endif ?>
<label>
<input type="checkbox" name="blubber" value="1"<?= $group->hasBlubber() ? " checked" : "" ?>>
<?= _('Blubber in der Gruppe erlauben') ?>
</label>
<label>
<input type="checkbox"
name="selfassign"
value="1"
data-shows=".self-assign-option"
<?= $group->selfassign ? ' checked' : '' ?>
>
<?= _('Selbsteintrag erlaubt') ?>
</label>
<label class="self-assign-option">
<input type="checkbox" name="exclusive" value="1"<?= $group->selfassign == 2 ? ' checked' : '' ?>>
<?= _('Exklusiver Selbsteintrag (in nur eine Gruppe)') ?>
</label>
<label class="col-3 self-assign-option">
<?= _('Selbsteintrag erlaubt ab') ?>
<input class="size-s" type="text" size="20" name="selfassign_start" id="selfassign_start" value="<?= $group->selfassign_start ?
date('d.m.Y H:i', $group->selfassign_start) : '' ?>" data-datetime-picker>
</label>
<label class="col-3 self-assign-option">
<?= _('Selbsteintrag erlaubt bis') ?>
<input class="size-s" type="text" size="20" name="selfassign_end" value="<?= $group->selfassign_end ?
date('d.m.Y H:i', $group->selfassign_end) : '' ?>" data-datetime-picker='{">":"#selfassign_start"}'>
</label>
</fieldset>
<h1>
<?= _('Zuordnung von Terminen') ?>
</h1>
<?php if ($cycles || $singledates) : ?>
<?php if ($cycles) : ?>
<fieldset class="collapsed">
<legend><?= _('Regelmäßige Zeiten') ?></legend>
<?php foreach ($cycles as $c) : ?>
<article class="<?= ContentBoxHelper::classes($c->id) ?>" id="<?= $c->id ?>">
<header>
<h1>
<a href="<?= ContentBoxHelper::href($c->id, ['contentbox_type' => 'news']) ?>">
<?= htmlReady($c->toString()) ?>
</a>
</h1>
</header>
<section>
<?php foreach ($c->dates as $d) : ?>
<label for="<?= $d->id ?>">
<input type="checkbox" name="dates[]" value="<?= $d->id ?>" id="<?= $d->id?>"
<?= $group->dates->find($d->id) ? ' checked' : '' ?>>
<?= htmlReady($d->getFullName()) ?>
</label>
<?php endforeach ?>
</section>
</article>
<?php endforeach ?>
</fieldset>
<?php endif ?>
<?php if ($singledates) : ?>
<fieldset class="collapsed">
<legend>
<?= _('Einzeltermine') ?>
</legend>
<?php foreach ($singledates as $s) : ?>
<label for="<?= $s->id ?>">
<input type="checkbox" name="dates[]" value="<?= $s->id ?>" id="<?= $s->id?>"
<?= $group->dates->find($s->id) ? ' checked' : '' ?>>
<?= htmlReady($s->getFullName()) ?>
</label>
<?php endforeach ?>
</fieldset>
<?php endif ?>
<?php else : ?>
<?= MessageBox::info(_('Diese Veranstaltung hat keine Termine.')); ?>
<?php endif ?>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Speichern'), 'submit') ?>
<?= Studip\LinkButton::createCancel(_('Abbrechen'),
$controller->url_for('course/statusgroups')) ?>
</footer>
</form>
<script type="text/javascript">
//<!--
STUDIP.Statusgroups.initInputs();
//-->
</script>
|