blob: 74a10eb8ab935b166202d8f6f5d0f1681478c5b0 (
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
|
<?php
/**
* @var WikiPage[] $pages
* @var Course_WikiController $controller
*/
?>
<form action="<?= $controller->link_for('course/wiki/page_bulk') ?>" method="POST" data-dialog="width=700" class="default">
<?= CSRFProtection::tokenTag() ?>
<table class="default sortable-table" data-sortlist="[[0, 0]]">
<caption>
<?= _('Alle Seiten des Wikis') ?>
</caption>
<thead>
<tr>
<th>
<input
aria-label="<?= _('Alle Seiten auswählen') ?>"
type="checkbox"
name="all"
value="1"
data-proxyfor=":checkbox[name^=pages]"
>
</th>
<th data-sort="text"><?= _('Seitenname') ?></th>
<th data-sort="digit"><?= _('Änderungen') ?></th>
<th data-sort="htmldata"><?= _('Letzte Änderung') ?></th>
<th data-sort="text"><?= _('Zuletzt bearbeitet von') ?></th>
</tr>
</thead>
<tbody>
<? foreach ($pages as $page) : ?>
<tr>
<td>
<input
aria-label="<?= sprintf(_('Seite "%s" auswählen'), htmlReady($page->name)) ?>"
type="checkbox"
<?= $page->write_permission === 'dozent' && !$GLOBALS['perm']->have_studip_perm('dozent', Context::getId()) ? 'disabled' : '' ?>
name="pages_id[]"
value="<?= $page->page_id ?>"
/>
</td>
<td data-text="<?= htmlReady($page->name) ?>">
<a href="<?= $controller->page($page) ?>">
<?= htmlReady($page->name) ?>
</a>
</td>
<td><?= count($page->versions) + 1 ?></td>
<td data-sort-value="<?= $page->chdate ?>">
<?= $page->chdate > 0 ? date('d.m.Y H:i:s', $page->chdate) : _('unbekannt') ?>
</td>
<td data-text="<?= htmlReady($page->user ? $page->user->getFullName() : _('unbekannt')) ?>">
<?= Avatar::getAvatar($page->user_id)->getImageTag(Avatar::SMALL) ?>
<?= htmlReady($page->user ? $page->user->getFullName() : _('unbekannt')) ?>
</td>
</tr>
<? endforeach ?>
</tbody>
<tfoot>
<tr>
<td colspan="5">
<select name="action" id="bulk_action" aria-label="<?= _('Aktion auswählen') ?>" required>
<option value="">- <?= _('Aktion auswählen') ?></option>
<option value="page_setting"><?= _('Seiteneinstellungen') ?></option>
</select>
<?= \Studip\Button::create(_('Ausführen'), 'render_form') ?>
</td>
</tr>
</tfoot>
</table>
</form>
|