aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/plugin/unregistered.php
blob: 800d247dda4bce11f7e17b65f6b43343fbe1a70d (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
46
47
<?php
/**
 * @var Admin_PluginController $controller
 * @var array $unknown_plugins
 */
?>
<table class="default sortable-table" data-sortlist="[[0, 0]]">
    <caption>
        <?= _('Im Pluginverzeichnis vorhandene Plugins registrieren') ?>
    </caption>
    <thead>
        <tr>
            <th data-sort="text"><?= _('Name') ?></th>
            <th data-sort="text"><?= _('Pluginklasse') ?></th>
            <th data-sort="digit"><?= _('Version') ?></th>
            <th data-sort="text"><?= _('Ursprung') ?></th>
            <th><?= _('Registrieren') ?></th>
        </tr>
    </thead>
    <tbody>
    <? if (!$unknown_plugins): ?>
        <tr>
            <td colspan="5">
                <?= _('Es sind keine nicht registrierten Plugins vorhanden') ?>
            </td>
        </tr>
    <? endif; ?>
    <? foreach ($unknown_plugins as $n => $plugin): ?>
        <tr>
            <td><?= htmlReady($plugin['pluginname']) ?></td>
            <td><?= htmlReady($plugin['pluginclassname']) ?></td>
            <td><?= htmlReady($plugin['version']) ?></td>
            <td><?= htmlReady($plugin['origin']) ?></td>
            <td class="actions">
                <form action="<?= $controller->link_for('admin/plugin/register/' . $n) ?>" method="post">
                    <?= CSRFProtection::tokenTag() ?>
                    <?= Icon::create('install')->asInput([
                        'title' => _('Plugin registrieren'),
                        'class' => 'middle',
                        'name'  => 'install',
                    ]) ?>
                </form>
            </td>
        </tr>
    <? endforeach ?>
    </tbody>
</table>