Add proper titles for the links to dis-/enable modules

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 17:19:37 +01:00
parent 3605880fd1
commit baf47fef7f

View File

@ -21,14 +21,20 @@ $state = $moduleData->enabled ? ($moduleData->loaded ? 'enabled' : 'failed') : '
<tr> <tr>
<th><?= $this->translate('State') ?></th> <th><?= $this->translate('State') ?></th>
<td><?= $state ?><?php if ($state === 'enabled'): ?> <td><?= $state ?><?php if ($state === 'enabled'): ?>
<?= $this->qlink($this->translate('disable'), 'config/moduledisable', array( <?= $this->qlink(
'name' => $module->getName() $this->translate('disable'),
)) ?> 'config/moduledisable',
array('name' => $module->getName()),
array('title' => sprintf($this->translate('Disable the %s module'), $module->getName()))
); ?>
<?php endif ?> <?php endif ?>
<?php if ($state === 'disabled'): ?> <?php if ($state === 'disabled'): ?>
<?= $this->qlink($this->translate('enable'), 'config/moduleenable', array( <?= $this->qlink(
'name' => $module->getName() $this->translate('enable'),
)) ?> 'config/moduleenable',
array('name' => $module->getName()),
array('title' => sprintf($this->translate('Enable the %s module'), $module->getName()))
); ?>
<?php endif ?> <?php endif ?>
</td> </td>
<tr> <tr>