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
|
<form class="default" method="post" action="<?= $controller->link_for('course/members/circular_mail') ?>"
data-dialog="size=default">
<?= CSRFProtection::tokenTag() ?>
<input type="hidden" name="default_subject" value="<?= htmlReady($default_subject) ?>">
<fieldset>
<legend><?= _('An wen möchten Sie eine Rundmail schreiben?') ?></legend>
<p aria-hidden="true"><?= _('An wen möchten Sie eine Rundmail schreiben?') ?></p>
<? if (in_array('dozent', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="dozent"
<? if (!$dozent_count): echo 'disabled'; ?>
<? elseif (in_array('dozent', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= htmlready($dozent_name) ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $dozent_count),
$dozent_count
) ?>)
</em>
</label>
<? endif ?>
<? if (in_array('tutor', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="tutor"
<? if (!$tutor_count): echo 'disabled'; ?>
<? elseif (in_array('tutor', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= htmlReady($tutor_name) ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $tutor_count),
$tutor_count
) ?>)
</em>
</label>
<? endif ?>
<? if (in_array('autor', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="autor"
<? if (!$autor_count): echo 'disabled'; ?>
<? elseif (in_array('autor', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= htmlReady($autor_name) ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $autor_count),
$autor_count
) ?>)
</em>
</label>
<? endif ?>
<? if (in_array('user', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="user"
<? if (!$user_count): echo 'disabled'; ?>
<? elseif (in_array('user', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= htmlReady($user_name) ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $user_count),
$user_count
) ?>)
</em>
</label>
<? endif ?>
<? if (in_array('accepted', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="accepted"
<? if (!$accepted_count): echo 'disabled'; ?>
<? elseif (in_array('accepted', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= _('Alle vorläufig akzeptierten Teilnehmenden der Veranstaltung') ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $accepted_count),
$accepted_count
) ?>)
</em>
</label>
<? endif ?>
<? if (in_array('awaiting', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="awaiting"
<? if (!$awaiting_count): echo 'disabled'; ?>
<? elseif (in_array('awaiting', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= _('Alle Personen auf der Warteliste der Veranstaltung') ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $awaiting_count),
$awaiting_count
) ?>)
</em>
</label>
<? endif ?>
<? if (in_array('claiming', $all_available_groups)) : ?>
<label>
<input type="checkbox" name="selected_groups[]" value="claiming"
<? if (!$claiming_count): echo 'disabled'; ?>
<? elseif (in_array('claiming', $default_selected_groups)): echo 'checked'; ?>
<? endif; ?>>
<?= _('Alle Personen auf der Losliste der Veranstaltung') ?>
<em>
(<?= sprintf(
ngettext('%u Person', '%u Personen', $claiming_count),
$claiming_count
) ?>)
</em>
</label>
<? endif ?>
</fieldset>
<div data-dialog-button>
<?= \Studip\Button::create(_('Rundmail schreiben'), 'write') ?>
</div>
</form>
|