aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/plugin/activation-error-form.php
blob: cd9b8b9be0803e92cb5b7e30ec57f01cb3dd4a22 (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
<?php
$aggregated = array_sum($memory);
if (!$aggregated) {
    $question = _('Markierte Plugins dennoch deaktivieren');
} elseif ($aggregated === count($memory)) {
    $question = _('Markierte Plugins dennoch aktivieren');
} else {
    $question = _('Markierte Plugins dennoch aktivieren bzw. deaktivieren');
}
?>

<form action="<?= $controller->url_for('admin/plugin/save') ?>" method="post">
    <input type="hidden" name="studip_ticket" value="<?= get_ticket() ?>">
    <input type="hidden" name="force" value="1">

    <?= _('Die folgenden Fehler sind aufgetreten:') ?>
    <div class="messagebox_details">
        <ul>
        <? foreach ($errors as $plugin_id => $error): ?>
            <li>
                <label>
                    <input type="checkbox" name="enabled_<?= $plugin_id ?>"
                           value="<?= (int) $memory[$plugin_id] ?>">
                    <?= htmlReady($error) ?>
                </label>
            </li>
        <? endforeach; ?>
        </ul>
    </div>

    <?= Studip\Button::create($question) ?>
</form>