Style user group backend list

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-30 12:45:48 +02:00
parent 2520d6a57a
commit 2f05276d32

View File

@ -1,29 +1,31 @@
<div class="controls"> <div class="controls">
<?= $tabs; ?> <?= $tabs ?>
</div> </div>
<div class="content" data-base-target="_next"> <div class="content" data-base-target="_next">
<?= $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(
'icon' => 'plus' 'class' => 'button action-link',
'icon' => 'plus',
'title' => $this->translate('Create a new user group backend')
) )
); ?> ) ?>
<?php if (count($backendNames) > 0): ?> <?php if (count($backendNames) > 0): ?>
<table class="action usergroupbackend-list alternating"> <table class="action-table listing-table">
<thead> <thead>
<tr> <tr>
<th class="backend-name"><?= $this->translate('Backend'); ?></th> <th><?= $this->translate('Backend') ?></th>
<th class="backend-remove"><?= $this->translate('Remove'); ?></th> <th></th>
<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 class="backend-name"> <td>
<?= $this->qlink( <?= $this->qlink(
$backendName, $backendName,
'usergroupbackend/edit', 'usergroupbackend/edit',
@ -34,18 +36,19 @@
) )
); ?> ); ?>
</td> </td>
<td class="backend-remove"><?= $this->qlink( <td class="text-right"><?= $this->qlink(
null, null,
'usergroupbackend/remove', 'usergroupbackend/remove',
array('backend' => $backendName), array('backend' => $backendName),
array( array(
'title' => sprintf($this->translate('Remove user group backend %s'), $backendName), 'class' => 'action-link',
'icon' => 'trash' 'icon' => 'cancel',
'title' => sprintf($this->translate('Remove user group backend %s'), $backendName)
) )
); ?></td> ) ?></td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
</tbody> </tbody>
</table> </table>
<?php endif ?> <?php endif ?>
</div> </div>