mirror of https://github.com/portainer/portainer
feat(ui): renovate the edge stacks list page EE-3535 (#7189)
parent
9a18dd8162
commit
8045a15a50
|
@ -2,16 +2,39 @@
|
||||||
<rd-widget>
|
<rd-widget>
|
||||||
<rd-widget-body classes="no-padding">
|
<rd-widget-body classes="no-padding">
|
||||||
<div class="toolBar">
|
<div class="toolBar">
|
||||||
<div class="toolBarTitle">
|
<div class="toolBarTitle vertical-center"> <pr-icon icon="$ctrl.titleIcon" feather="true"></pr-icon> Edge Stacks </div>
|
||||||
<i class="fa" ng-class="$ctrl.titleIcon" aria-hidden="true" style="margin-right: 2px"></i>
|
<div class="searchBar vertical-center">
|
||||||
Edge Stacks
|
<pr-icon icon="'search'" feather="true" class-name="'icon'"></pr-icon>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="searchInput"
|
||||||
|
ng-model="$ctrl.state.textFilter"
|
||||||
|
ng-change="$ctrl.onTextFilterChange()"
|
||||||
|
placeholder="Search..."
|
||||||
|
auto-focus
|
||||||
|
ng-model-options="{ debounce: 300 }"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings" data-cy="edgeStack-stackTableSettings">
|
<div class="actionBar">
|
||||||
<span class="setting" ng-class="{ 'setting-active': $ctrl.settings.open }" uib-dropdown dropdown-append-to-body auto-close="disabled" is-open="$ctrl.settings.open">
|
<button
|
||||||
<span uib-dropdown-toggle> <i class="fa fa-cog" aria-hidden="true"></i> Settings </span>
|
type="button"
|
||||||
|
class="btn btn-sm btn-danger"
|
||||||
|
ng-disabled="$ctrl.state.selectedItemCount === 0"
|
||||||
|
ng-click="$ctrl.removeAction($ctrl.state.selectedItems)"
|
||||||
|
data-cy="edgeStack-removeStackButton"
|
||||||
|
>
|
||||||
|
<pr-icon icon="'trash-2'" feather="true"></pr-icon> Remove
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-sm btn-primary" ui-sref="edge.stacks.new" data-cy="edgeStack-addStackButton">
|
||||||
|
<pr-icon icon="'plus'" feather="true"></pr-icon> Add stack
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="settings !w-2.5" data-cy="edgeStack-stackTableSettings">
|
||||||
|
<span class="setting mr-0" ng-class="{ 'setting-active': $ctrl.settings.open }" uib-dropdown dropdown-append-to-body auto-close="disabled" is-open="$ctrl.settings.open">
|
||||||
|
<span uib-dropdown-toggle><pr-icon icon="'more-vertical'" feather="true"></pr-icon></span>
|
||||||
<div class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
|
<div class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
|
||||||
<div class="tableMenu">
|
<div class="tableMenu">
|
||||||
<div class="menuHeader"> Table settings </div>
|
<div class="menuHeader"> <pr-icon icon="'settings'" feather="true"></pr-icon> Table settings </div>
|
||||||
<div class="menuContent">
|
<div class="menuContent">
|
||||||
<div>
|
<div>
|
||||||
<div class="md-checkbox">
|
<div class="md-checkbox">
|
||||||
|
@ -33,8 +56,8 @@
|
||||||
<option value="120">2min</option>
|
<option value="120">2min</option>
|
||||||
<option value="300">5min</option>
|
<option value="300">5min</option>
|
||||||
</select>
|
</select>
|
||||||
<span>
|
<span class="inline-block w-3">
|
||||||
<i id="refreshRateChange" class="fa fa-check green-icon" aria-hidden="true" style="margin-top: 7px; display: none"></i>
|
<pr-icon id="refreshRateChange" icon="'check'" style="display: none" mode="'success'" feather="true"></pr-icon>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,54 +70,28 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actionBar">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-sm btn-danger"
|
|
||||||
ng-disabled="$ctrl.state.selectedItemCount === 0"
|
|
||||||
ng-click="$ctrl.removeAction($ctrl.state.selectedItems)"
|
|
||||||
data-cy="edgeStack-removeStackButton"
|
|
||||||
>
|
|
||||||
<i class="fa fa-trash-alt space-right" aria-hidden="true"></i>Remove
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn btn-sm btn-primary" ui-sref="edge.stacks.new" data-cy="edgeStack-addStackButton">
|
|
||||||
<i class="fa fa-plus space-right" aria-hidden="true"></i>Add stack
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="searchBar">
|
|
||||||
<i class="fa fa-search searchIcon" aria-hidden="true"></i>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
class="searchInput"
|
|
||||||
ng-model="$ctrl.state.textFilter"
|
|
||||||
ng-change="$ctrl.onTextFilterChange()"
|
|
||||||
placeholder="Search..."
|
|
||||||
auto-focus
|
|
||||||
ng-model-options="{ debounce: 300 }"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-hover nowrap-cells" data-cy="edgeStack-stackTable">
|
<table class="table table-hover nowrap-cells" data-cy="edgeStack-stackTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="md-checkbox" ng-if="!$ctrl.offlineMode">
|
<table-column-header
|
||||||
<input id="select_all" type="checkbox" ng-model="$ctrl.state.selectAll" ng-change="$ctrl.selectAll()" data-cy="edgeStack-selectAllCheckbox" />
|
col-title="'Name'"
|
||||||
<label for="select_all"></label>
|
can-sort="true"
|
||||||
</span>
|
is-sorted="$ctrl.state.orderBy === 'Name'"
|
||||||
<a ng-click="$ctrl.changeOrderBy('Name')">
|
is-sorted-desc="$ctrl.state.orderBy === 'Name' && $ctrl.state.reverseOrder"
|
||||||
Name
|
ng-click="$ctrl.changeOrderBy('Name')"
|
||||||
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Name' && !$ctrl.state.reverseOrder"></i>
|
></table-column-header>
|
||||||
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Name' && $ctrl.state.reverseOrder"></i>
|
|
||||||
</a>
|
|
||||||
</th>
|
</th>
|
||||||
<th> Status </th>
|
<th> Status </th>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('CreationDate')">
|
<table-column-header
|
||||||
Creation Date
|
col-title="'Creation Date'"
|
||||||
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'CreationDate' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'CreationDate' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'CreationDate'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'CreationDate' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('CreationDate')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -129,7 +126,7 @@
|
||||||
<div class="paginationControls">
|
<div class="paginationControls">
|
||||||
<form class="form-inline">
|
<form class="form-inline">
|
||||||
<span class="limitSelector">
|
<span class="limitSelector">
|
||||||
<span style="margin-right: 5px"> Items per page </span>
|
<span class="mr-1"> Items per page </span>
|
||||||
<select class="form-control" ng-model="$ctrl.state.paginatedItemLimit" ng-change="$ctrl.changePaginationLimit()" data-cy="component-paginationSelect">
|
<select class="form-control" ng-model="$ctrl.state.paginatedItemLimit" ng-change="$ctrl.changePaginationLimit()" data-cy="component-paginationSelect">
|
||||||
<option value="0">All</option>
|
<option value="0">All</option>
|
||||||
<option value="10">10</option>
|
<option value="10">10</option>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<edge-stacks-datatable
|
<edge-stacks-datatable
|
||||||
title-text="Edge Stacks"
|
title-text="Edge Stacks"
|
||||||
title-icon="fa-th-list"
|
title-icon="layers"
|
||||||
dataset="$ctrl.stacks"
|
dataset="$ctrl.stacks"
|
||||||
table-key="edgeStacks"
|
table-key="edgeStacks"
|
||||||
order-by="Name"
|
order-by="Name"
|
||||||
|
|
Loading…
Reference in New Issue