1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(ui): EE-3767 css portainer groups (#7360)

This commit is contained in:
congs 2022-08-02 11:19:57 +12:00 committed by GitHub
parent 9dc6aa81cb
commit 03590d46e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 12 deletions

View file

@ -39,17 +39,23 @@
<thead> <thead>
<tr> <tr>
<th> <th>
<span class="md-checkbox"> <div class="vertical-center">
<input id="select_all" type="checkbox" ng-model="$ctrl.state.selectAll" ng-change="$ctrl.selectAll()" data-cy="endpointGroup-selectAllCheckbox" /> <span class="md-checkbox">
<label for="select_all"></label> <input id="select_all" type="checkbox" ng-model="$ctrl.state.selectAll" ng-change="$ctrl.selectAll()" data-cy="endpointGroup-selectAllCheckbox" />
</span> <label for="select_all"></label>
<a ng-click="$ctrl.changeOrderBy('Name')"> </span>
Name <table-column-header
<pr-icon icon="'arrow-down'" feather="true" ng-if="$ctrl.state.orderBy === 'Name' && !$ctrl.state.reverseOrder"></pr-icon> col-title="'Name'"
<pr-icon icon="'arrow-up'" feather="true" ng-if="$ctrl.state.orderBy === 'Name' && $ctrl.state.reverseOrder"></pr-icon> can-sort="true"
</a> is-sorted="$ctrl.state.orderBy === 'Name'"
is-sorted-desc="$ctrl.state.orderBy === 'Name' && $ctrl.state.reverseOrder"
ng-click="$ctrl.changeOrderBy('Name')"
></table-column-header>
</div>
</th>
<th>
<table-column-header col-title="'Actions'" can-sort="false"></table-column-header>
</th> </th>
<th>Actions</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -65,7 +71,12 @@
<a ui-sref="portainer.groups.group({id: item.Id})">{{ item.Name }}</a> <a ui-sref="portainer.groups.group({id: item.Id})">{{ item.Name }}</a>
</td> </td>
<td> <td>
<a ui-sref="portainer.groups.group.access({id: item.Id})"> <pr-icon icon="'users'" feather="true"></pr-icon> Manage access </a> <div class="vertical-center">
<a ui-sref="portainer.groups.group.access({id: item.Id})">
<pr-icon icon="'users'" feather="true"></pr-icon>
Manage access
</a>
</div>
</td> </td>
</tr> </tr>
<tr ng-if="!$ctrl.dataset"> <tr ng-if="!$ctrl.dataset">

View file

@ -2,6 +2,13 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<groups-datatable title-text="Environment groups" title-icon="grid" dataset="groups" table-key="groups" order-by="Name" remove-action="removeAction"></groups-datatable> <groups-datatable
title-text="Environment groups"
title-icon="svg-objectgroup"
dataset="groups"
table-key="groups"
order-by="Name"
remove-action="removeAction"
></groups-datatable>
</div> </div>
</div> </div>