2014-05-26 16:38:03 +02:00
|
|
|
<div class="controls">
|
2014-06-21 02:27:27 +02:00
|
|
|
<?= $this->tabs ?>
|
2014-09-29 15:20:19 +02:00
|
|
|
<h1><?= $this->translate('Installed Modules') ?></h1>
|
2014-06-21 02:27:27 +02:00
|
|
|
<?= $this->paginationControl($modules) ?>
|
2014-05-26 16:38:03 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<table class="action" data-base-target="_next">
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($modules as $module): ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2015-02-16 11:02:09 +01:00
|
|
|
<?php if ($module->enabled && $module->loaded) {
|
2015-02-23 17:19:06 +01:00
|
|
|
echo $this->icon('thumbs-up', sprintf($this->translate('Module %s is enabled'), $module->name));
|
2015-02-16 11:02:09 +01:00
|
|
|
} elseif (! $module->enabled) {
|
2015-02-23 17:19:06 +01:00
|
|
|
echo $this->icon('thumbs-down', sprintf($this->translate('Module %s is disabled'), $module->name));
|
2015-02-16 11:02:09 +01:00
|
|
|
} else { // ! $module->loaded
|
2015-02-23 17:19:06 +01:00
|
|
|
echo $this->icon('thumbs-down', sprintf($this->translate('Module %s has failed to load'), $module->name));
|
2015-02-16 11:02:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
echo $this->qlink(
|
2015-02-23 17:19:06 +01:00
|
|
|
$module->name,
|
2015-02-16 11:02:09 +01:00
|
|
|
'config/module/',
|
|
|
|
array('name' => $module->name),
|
2015-02-23 17:19:06 +01:00
|
|
|
array('title' => sprintf($this->translate('Show the overview of the %s module'), $module->name))
|
2015-02-16 11:02:09 +01:00
|
|
|
); ?>
|
2014-05-26 16:38:03 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2014-10-23 10:44:54 +02:00
|
|
|
<?php endforeach ?>
|
2014-05-26 16:38:03 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|