diff --git a/application/controllers/GroupController.php b/application/controllers/GroupController.php index 3f14b2090..21fba5ebb 100644 --- a/application/controllers/GroupController.php +++ b/application/controllers/GroupController.php @@ -44,7 +44,7 @@ class GroupController extends AuthBackendController 'backend', array( 'autosubmit' => true, - 'label' => $this->translate('Usergroup Backend'), + 'label' => $this->translate('User Group Backend'), 'multiOptions' => array_combine($backendNames, $backendNames), 'value' => $this->params->get('backend') ) @@ -66,7 +66,7 @@ class GroupController extends AuthBackendController $this->setupLimitControl(); $this->setupSortControl( array( - 'group_name' => $this->translate('Group'), + 'group_name' => $this->translate('User Group'), 'created_at' => $this->translate('Created at'), 'last_modified' => $this->translate('Last modified') ), diff --git a/application/views/scripts/group/list.phtml b/application/views/scripts/group/list.phtml index 01bf3f7dd..b2bc9b920 100644 --- a/application/views/scripts/group/list.phtml +++ b/application/views/scripts/group/list.phtml @@ -4,30 +4,24 @@ use Icinga\Data\Extensible; use Icinga\Data\Reducible; if (! $this->compact): ?> -
- tabs; ?> -
-
- limiter ?> +
+ +
+ limiter ?> + paginator ?> + sortBox ?>
-
- paginator ?> +
+ backendSelection; ?> + filterEditor; ?>
-
- sortBox ?> -
-
-
- backendSelection; ?> - filterEditor; ?> -
-
+
translate('No backend found which is able to list groups') . '
'; + echo $this->translate('No backend found which is able to list user groups') . '
'; return; } else { $extensible = $this->hasPermission('config/authentication/groups/add') && $backend instanceof Extensible; @@ -37,64 +31,68 @@ if (! isset($backend)) { qlink( - $this->translate('Add a New User Group') , + $this->translate('Add a New User Group'), 'group/add', array('backend' => $backend->getName()), array( 'class' => 'button-link', 'data-base-target' => '_next', - 'icon' => 'plus', - 'title' => $this->translate('Create a new user group') + 'icon' => 'plus' ) ) ?> - - - - - - - - - - - - - - - - - - - - - -hasResult()): ?> - -
translate('Group'); ?>translate('Remove'); ?>
qlink($group->group_name, 'group/show', array( - 'backend' => $backend->getName(), - 'group' => $group->group_name - ), array( - 'title' => sprintf($this->translate('Show detailed information for group %s'), $group->group_name) - )); ?> - qlink( - null, - 'group/remove', - array( - 'backend' => $backend->getName(), - 'group' => $group->group_name - ), - array( - 'title' => sprintf($this->translate('Remove group %s'), $group->group_name), - 'icon' => 'trash' - ) - ); ?> -
- -

translate('No groups found matching the filter'); ?>

- +hasResult()): ?> +

translate('No user groups found matching the filter'); ?>

+ + + + + + + + + + + + + + + + + + + + + +
translate('User Group'); ?>translate('Remove'); ?>
+ qlink( + $group->group_name, + 'group/show', + array( + 'backend' => $backend->getName(), + 'group' => $group->group_name + ), + array( + 'title' => sprintf( + $this->translate('Show detailed information for user group %s'), + $group->group_name + ) + ) + ); ?> + + qlink( + null, + 'group/remove', + array( + 'backend' => $backend->getName(), + 'group' => $group->group_name + ), + array( + 'title' => sprintf($this->translate('Remove user group %s'), $group->group_name), + 'icon' => 'trash' + ) + ); ?> +
+
\ No newline at end of file diff --git a/public/css/icinga/main-content.less b/public/css/icinga/main-content.less index 0d0e92d23..624b21eec 100644 --- a/public/css/icinga/main-content.less +++ b/public/css/icinga/main-content.less @@ -233,29 +233,6 @@ div.content.users { } } -div.content.groups { - table.group-list { - th.group-remove { - width: 8em; - padding-right: 0.5em; - text-align: right; - } - - td.group-remove { - text-align: right; - } - } - - p { - margin-top: 0; - } - - a.group-add { - display: block; - margin-top: 1em; - } -} - form.backend-selection { float: right;