blob: 12319b147ba1167e0b3967891aefdc9f8ba5d2fb (
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
|
<form action="<?= $controller->link_for("questionnaire/bulkdelete", $range_type ? ['range_type' => $range_type, 'range_id' => Context::getId()]: []) ?>"
method="post">
<table class="default" id="questionnaire_overview">
<thead>
<tr>
<th width="20"><input type="checkbox" data-proxyfor="#questionnaire_overview > tbody input[type=checkbox]"></th>
<th><?= _('Fragebogen') ?></th>
<th><?= _('Startet') ?></th>
<th><?= _('Endet') ?></th>
<th><?= _('Eingebunden') ?></th>
<th><?= _('Teilnehmende') ?></th>
<th class="actions"><?= _('Aktionen') ?></th>
</tr>
</thead>
<tbody>
<? if (count($questionnaires)) : ?>
<? foreach ($questionnaires as $questionnaire) : ?>
<?= $this->render_partial('questionnaire/_overview_questionnaire.php', compact('questionnaire')) ?>
<? endforeach ?>
<? else : ?>
<tr class="noquestionnaires">
<td colspan="7" style="text-align: center">
<?= _('Sie haben noch keine Fragebögen erstellt.') ?>
</td>
</tr>
<? endif ?>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<?= \Studip\Button::create(_("Löschen"), "bulkdelete", ['data-confirm' => _("Wirklich löschen?")]) ?>
</td>
</tr>
</tfoot>
</table>
</form>
<?php
$actions = new ActionsWidget();
$actions->addLink(
_('Fragebogen erstellen'),
$controller->url_for('questionnaire/add_to_context', $range_type ? ['range_type' => $range_type, 'range_id' => Context::getId()]: []),
Icon::create('add', 'clickable'),
['data-dialog' => 'size=auto']
);
Sidebar::Get()->addWidget($actions);
|