diff --git a/application/controllers/GroupController.php b/application/controllers/GroupController.php index 4dd05fdef..3f14b2090 100644 --- a/application/controllers/GroupController.php +++ b/application/controllers/GroupController.php @@ -134,7 +134,7 @@ class GroupController extends AuthBackendController $removeForm->addElement('button', 'btn_submit', array( 'escape' => false, 'type' => 'submit', - 'class' => 'link-like spinner', + 'class' => 'link-button spinner', 'value' => 'btn_submit', 'decorators' => array('ViewHelper'), 'label' => $this->view->icon('trash'), diff --git a/application/views/scripts/group/show.phtml b/application/views/scripts/group/show.phtml index 8d81683ee..fb850a2a5 100644 --- a/application/views/scripts/group/show.phtml +++ b/application/views/scripts/group/show.phtml @@ -23,90 +23,86 @@ if ($this->hasPermission('config/authentication/groups/edit') && $backend instan } ?> -
- compact): ?> - - -

escape($group->group_name) ?>

- - - - - - - - - -
translate('Created at'); ?>created_at === null ? '-' : $this->formatDateTime($group->created_at); ?>
translate('Last modified'); ?>last_modified === null ? '-' : $this->formatDateTime($group->last_modified); ?>
-

translate('Members'); ?>

+
compact): ?> - sortBox; ?> + - limiter; ?> - paginator; ?> +

escape($group->group_name) ?>

+ + + + + + + + + +
translate('Created at'); ?>created_at === null ? '-' : $this->formatDateTime($group->created_at); ?>
translate('Last modified'); ?>last_modified === null ? '-' : $this->formatDateTime($group->last_modified); ?>
compact): ?> - filterEditor; ?> +

translate('Members'); ?>

+
+ limiter; ?> + paginator; ?> + sortBox; ?> +
+ filterEditor; ?>
-
+
qlink( - $this->translate('Add User to Group') , + $this->translate('Add New Member'), 'group/addmember', - null, array( - 'class' => 'button-link', - 'data-base-target' => '_next', - 'icon' => 'plus', - 'title' => $this->translate('Add user to group') + 'backend' => $backend->getName(), + 'group' => $group->group_name + ), + array( + 'icon' => 'plus', + 'class' => 'button-link' ) ) ?> - - - - - - - - - - - - - - - - - - - - - -hasResult()): ?> - -
translate('Username'); ?>translate('Remove'); ?>
- hasPermission('config/authentication/users/show') - && ($userBackend = $backend->getUserBackendName($member->user_name)) !== null - ): ?> - qlink($member->user_name, 'user/show', array( - 'backend' => $userBackend, - 'user' => $member->user_name - ), array( - 'title' => sprintf($this->translate('Show detailed information about %s'), $member->user_name) - )); ?> - - escape($member->user_name); ?> - - - getElement('user_name')->setValue($member->user_name); echo $removeForm; ?> -
- +hasResult()): ?>

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

-
+ + + + + + + + + + + + + + + + + + + + + +
translate('Username'); ?>translate('Remove'); ?>
+ hasPermission('config/authentication/users/show') + && ($userBackend = $backend->getUserBackendName($member->user_name)) !== null + ): ?> + qlink($member->user_name, 'user/show', array( + 'backend' => $userBackend, + 'user' => $member->user_name + ), array( + 'title' => sprintf($this->translate('Show detailed information about %s'), $member->user_name) + )); ?> + + escape($member->user_name); ?> + + + getElement('user_name')->setValue($member->user_name); echo $removeForm; ?> +
+
\ No newline at end of file diff --git a/public/css/icinga/main-content.less b/public/css/icinga/main-content.less index 05c41ce62..0d0e92d23 100644 --- a/public/css/icinga/main-content.less +++ b/public/css/icinga/main-content.less @@ -256,33 +256,6 @@ div.content.groups { } } -div.content.members { - table.member-list { - th.member-remove { - width: 8em; - padding-right: 0.5em; - text-align: right; - } - - td.member-remove { - text-align: right; - - form button.link-like { - color: inherit; - } - } - } - - p { - margin-top: 0; - } - - a.member-add { - display: block; - margin-top: 1em; - } -} - form.backend-selection { float: right;