aboutsummaryrefslogtreecommitdiff
path: root/app/views/activityfeed/configuration.php
blob: ceb87eb2180dd4251d043433bfa70ff1794c8a9d (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
<?php
/**
 * @var ActivityfeedController $controller
 * @var array $modules
 * @var array $context_translations
 */
?>
<div id="activityEdit">
    <form id="configure_activity" action="<?= $controller->link_for('activityfeed/save') ?>" method="post" class="default" data-dialog>
        <h1><?= _("Anzuzeigende Bereiche:") ?></h1>

    <? foreach ($modules as $context => $provider): ?>
        <fieldset>
            <legend><?= htmlReady($context_translations[$context]) ?></legend>
            <? foreach ($provider as $prv_id => $prv_name) : ?>
            <label>
                <input type="checkbox" name="provider[<?= $context ?>][]" value="<?= htmlReady($prv_id) ?>"
                    <?= empty($config) || (is_array($config[$context]) && in_array($prv_id, $config[$context])) ? 'checked' : ''?>>
                <?= htmlReady($prv_name) ?>
            </label>
            <? endforeach ?>
        </fieldset>
    <? endforeach; ?>

        <footer data-dialog-button>
            <?= Studip\Button::createAccept(_('Speichern')) ?>
            <?= Studip\Button::createCancel(_('Abbrechen'), URLHelper::getLink('dispatch.php/start')) ?>
        </footer>
    </form>
</div>