blob: 8b68e059e9278f084429bf45263a199044b53b70 (
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 ($metadata['description']): ?>
<p><?= formatReady($metadata['description']) ?></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>
|