blob: 7f9891548fbbb90bc8ec8a0f050c0117f167d40a (
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
|
<?php
/**
* @var StartController $controller
* @var StudIPPlugin[] $widgets
*/
?>
<form action="<?= $controller->url_for('start/add') ?>" method="post" class="default">
<input type="hidden" name="studip_ticket" value="<?= get_ticket() ?>">
<input type="hidden" name="position" value="0">
<fieldset>
<legend>
<?= _('Neues Widget zur Startseite hinzufügen') ?>
</legend>
<ul class="addclip-widgets">
<? foreach ($widgets as $widget): ?>
<? $metadata = $widget->getMetadata(); ?>
<li>
<label>
<input type="checkbox" name="widget_id[]" value="<?= $widget->getPluginId() ?>">
<?= htmlReady($widget->getPluginName()) ?>
</label>
<? if ($widget->getPluginDescription()): ?>
<p><?= formatReady($widget->getPluginDescription()) ?></p>
<? endif; ?>
</li>
<? endforeach; ?>
</ul>
</fieldset>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Hinzufügen')) ?>
<?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('start')) ?>
</footer>
</form>
|