Fix usergroupbackend/list markup

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-30 23:25:11 +02:00
parent 612e62f853
commit 97ff1f649b

View File

@ -1,19 +1,20 @@
<div class="controls"> <div class="controls">
<?= $tabs ?> <?= $tabs ?>
</div> </div>
<div class="content" data-base-target="_next"> <div class="content">
<?= $this->qlink( <?= $this->qlink(
$this->translate('Create A New User Group Backend') , $this->translate('Create A New User Group Backend') ,
'usergroupbackend/create', 'usergroupbackend/create',
null, null,
array( array(
'class' => 'button action-link', 'class' => 'button-link',
'data-base-target' => '_next',
'icon' => 'plus', 'icon' => 'plus',
'title' => $this->translate('Create a new user group backend') 'title' => $this->translate('Create a new user group backend')
) )
) ?> ) ?>
<?php if (count($backendNames) > 0): ?> <?php if (! count($backendNames)) { return; } ?>
<table class="action-table listing-table"> <table class="action-table listing-table" data-base-target="_next">
<thead> <thead>
<tr> <tr>
<th><?= $this->translate('Backend') ?></th> <th><?= $this->translate('Backend') ?></th>
@ -21,9 +22,9 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach ($backendNames as $backendName => $config): <?php foreach ($backendNames as $backendName => $config):
$type = $config->get('backend'); $type = $config->get('backend');
?> ?>
<tr> <tr>
<td> <td>
<?= $this->qlink( <?= $this->qlink(
@ -36,7 +37,8 @@
) )
); ?> ); ?>
</td> </td>
<td class="text-right"><?= $this->qlink( <td class="icon-col text-right">
<?= $this->qlink(
null, null,
'usergroupbackend/remove', 'usergroupbackend/remove',
array('backend' => $backendName), array('backend' => $backendName),
@ -45,10 +47,10 @@
'icon' => 'cancel', 'icon' => 'cancel',
'title' => sprintf($this->translate('Remove user group backend %s'), $backendName) 'title' => sprintf($this->translate('Remove user group backend %s'), $backendName)
) )
) ?></td> ) ?>
</td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
</tbody> </tbody>
</table> </table>
<?php endif ?>
</div> </div>