mirror of https://github.com/portainer/portainer
fix search box for group (#7446)
parent
8d4cb5e16b
commit
fb14a85483
|
@ -105,8 +105,7 @@
|
||||||
|
|
||||||
<tag-selector ng-if="$ctrl.model.TagIds" value="$ctrl.model.TagIds" on-change="($ctrl.onChangeTags)"> </tag-selector>
|
<tag-selector ng-if="$ctrl.model.TagIds" value="$ctrl.model.TagIds" on-change="($ctrl.onChangeTags)"> </tag-selector>
|
||||||
|
|
||||||
<div class="col-sm-12 form-section-title"> Associated environments by tags </div>
|
<div class="table-in-row">
|
||||||
<div class="col-sm-12 form-group">
|
|
||||||
<group-association-table
|
<group-association-table
|
||||||
loaded="$ctrl.loaded"
|
loaded="$ctrl.loaded"
|
||||||
page-type="$ctrl.pageType"
|
page-type="$ctrl.pageType"
|
||||||
|
@ -120,6 +119,7 @@
|
||||||
groups="$ctrl.groups"
|
groups="$ctrl.groups"
|
||||||
show-groups="true"
|
show-groups="true"
|
||||||
has-backend-pagination="true"
|
has-backend-pagination="true"
|
||||||
|
title="Associated environments by tags"
|
||||||
></group-association-table>
|
></group-association-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,10 +3,9 @@
|
||||||
to the other.
|
to the other.
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12" style="margin-top: 20px">
|
<div class="col-sm-12" style="margin-top: 20px">
|
||||||
<!-- available-endpoints -->
|
<div class="table-row-container">
|
||||||
<div class="col-sm-6">
|
<!-- available-endpoints -->
|
||||||
<div class="text-center small text-muted">Available environments</div>
|
<div class="datatable table-in-row">
|
||||||
<div style="margin-top: 10px">
|
|
||||||
<group-association-table
|
<group-association-table
|
||||||
loaded="$ctrl.loaded"
|
loaded="$ctrl.loaded"
|
||||||
page-type="$ctrl.pageType"
|
page-type="$ctrl.pageType"
|
||||||
|
@ -21,15 +20,13 @@
|
||||||
groups="$ctrl.groups"
|
groups="$ctrl.groups"
|
||||||
show-groups="true"
|
show-groups="true"
|
||||||
has-backend-pagination="true"
|
has-backend-pagination="true"
|
||||||
|
title="Available environments"
|
||||||
data-cy="edgeGroupCreate-availableEndpoints"
|
data-cy="edgeGroupCreate-availableEndpoints"
|
||||||
></group-association-table>
|
></group-association-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- !available-endpoints -->
|
||||||
<!-- !available-endpoints -->
|
<!-- associated-endpoints -->
|
||||||
<!-- associated-endpoints -->
|
<div class="datatable table-in-row">
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="text-center small text-muted">Associated environments</div>
|
|
||||||
<div style="margin-top: 10px">
|
|
||||||
<group-association-table
|
<group-association-table
|
||||||
loaded="$ctrl.loaded"
|
loaded="$ctrl.loaded"
|
||||||
page-type="$ctrl.pageType"
|
page-type="$ctrl.pageType"
|
||||||
|
@ -44,9 +41,10 @@
|
||||||
groups="$ctrl.groups"
|
groups="$ctrl.groups"
|
||||||
show-groups="true"
|
show-groups="true"
|
||||||
has-backend-pagination="true"
|
has-backend-pagination="true"
|
||||||
|
title="Associated environments"
|
||||||
data-cy="edgeGroupCreate-associatedEndpoints"
|
data-cy="edgeGroupCreate-associatedEndpoints"
|
||||||
></group-association-table>
|
></group-association-table>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- !associated-endpoints -->
|
||||||
</div>
|
</div>
|
||||||
<!-- !associated-endpoints -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -348,3 +348,16 @@
|
||||||
border: none;
|
border: none;
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Multiple Tables in a row */
|
||||||
|
.table-row-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
.table-in-row {
|
||||||
|
border: 1px solid var(--border-widget);
|
||||||
|
border-radius: 8px;
|
||||||
|
flex-grow: 2;
|
||||||
|
}
|
||||||
|
|
|
@ -39,9 +39,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12" style="margin-top: 20px">
|
<div class="col-sm-12" style="margin-top: 20px">
|
||||||
<!-- available-endpoints -->
|
<!-- available-endpoints -->
|
||||||
<div class="col-sm-6">
|
<div class="table-row-container">
|
||||||
<div class="text-center small text-muted">Available environments</div>
|
<div class="datatable table-in-row">
|
||||||
<div style="margin-top: 10px">
|
|
||||||
<group-association-table
|
<group-association-table
|
||||||
loaded="$ctrl.loaded"
|
loaded="$ctrl.loaded"
|
||||||
page-type="$ctrl.pageType"
|
page-type="$ctrl.pageType"
|
||||||
|
@ -51,15 +50,13 @@
|
||||||
entry-click="$ctrl.associateEndpoint"
|
entry-click="$ctrl.associateEndpoint"
|
||||||
pagination-state="$ctrl.state.available"
|
pagination-state="$ctrl.state.available"
|
||||||
empty-dataset-message="No environment available"
|
empty-dataset-message="No environment available"
|
||||||
|
title="Available environments"
|
||||||
cy-value="available-endpoints"
|
cy-value="available-endpoints"
|
||||||
></group-association-table>
|
></group-association-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- !available-endpoints -->
|
||||||
<!-- !available-endpoints -->
|
<!-- associated-endpoints -->
|
||||||
<!-- associated-endpoints -->
|
<div class="table-in-row">
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="text-center small text-muted">Associated environments</div>
|
|
||||||
<div style="margin-top: 10px">
|
|
||||||
<group-association-table
|
<group-association-table
|
||||||
loaded="$ctrl.loaded"
|
loaded="$ctrl.loaded"
|
||||||
page-type="$ctrl.pageType"
|
page-type="$ctrl.pageType"
|
||||||
|
@ -70,6 +67,7 @@
|
||||||
pagination-state="$ctrl.state.associated"
|
pagination-state="$ctrl.state.associated"
|
||||||
empty-dataset-message="No associated environment"
|
empty-dataset-message="No associated environment"
|
||||||
has-backend-pagination="this.pageType !== 'create'"
|
has-backend-pagination="this.pageType !== 'create'"
|
||||||
|
title="Associated environments"
|
||||||
cy-value="associated-endpoints"
|
cy-value="associated-endpoints"
|
||||||
></group-association-table>
|
></group-association-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,8 +77,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="$ctrl.model.Id === 1">
|
<div ng-if="$ctrl.model.Id === 1">
|
||||||
<div class="col-sm-12 form-section-title"> Unassociated environments </div>
|
<div class="table-in-row">
|
||||||
<div style="margin-top: 10px">
|
|
||||||
<group-association-table
|
<group-association-table
|
||||||
loaded="$ctrl.loaded"
|
loaded="$ctrl.loaded"
|
||||||
page-type="$ctrl.pageType"
|
page-type="$ctrl.pageType"
|
||||||
|
@ -89,6 +86,7 @@
|
||||||
dataset="$ctrl.associatedEndpoints"
|
dataset="$ctrl.associatedEndpoints"
|
||||||
pagination-state="$ctrl.state.associated"
|
pagination-state="$ctrl.state.associated"
|
||||||
empty-dataset-message="No environment available"
|
empty-dataset-message="No environment available"
|
||||||
|
title="Unassociated environments"
|
||||||
></group-association-table>
|
></group-association-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -65,5 +65,6 @@ angular.module('portainer.app').component('groupAssociationTable', {
|
||||||
showGroups: '<',
|
showGroups: '<',
|
||||||
hasBackendPagination: '<',
|
hasBackendPagination: '<',
|
||||||
cyValue: '@',
|
cyValue: '@',
|
||||||
|
title: '@',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<div class="datatable">
|
<div class="datatable">
|
||||||
<table class="table table-hover" data-cy="{{ $ctrl.cyValue }}">
|
<div class="toolBar">
|
||||||
<div class="col-sm-12 vertical-center mb-1">
|
<div class="toolBarTitle">{{ $ctrl.title }}</div>
|
||||||
<pr-icon icon="'search'" feather="true"></pr-icon>
|
<div class="searchBar vertical-center">
|
||||||
|
<pr-icon icon="'search'" feather="true" class-name="'searchIcon'"></pr-icon>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
class="searchInput"
|
class="searchInput"
|
||||||
|
@ -11,6 +12,8 @@
|
||||||
placeholder="Search..."
|
placeholder="Search..."
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<table class="table table-hover" data-cy="{{ $ctrl.cyValue }}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> Name </th>
|
<th> Name </th>
|
||||||
|
|
Loading…
Reference in New Issue