|
@@ -47,35 +47,30 @@
|
|
|
<span ng-show="filterSrv.ids.length == 0">
|
|
<span ng-show="filterSrv.ids.length == 0">
|
|
|
<h5>No filters available</h5>
|
|
<h5>No filters available</h5>
|
|
|
</span>
|
|
</span>
|
|
|
- <div ng-repeat="id in filterSrv.ids" class="small filter-panel-filter filter-{{filterSrv.list[id].mandate}}" ng-class="{'filter-deselected': !filterSrv.list[id].active}">
|
|
|
|
|
|
|
+ <div ng-repeat="id in filterSrv.ids" class="small filter-panel-filter filter-must" ng-class="{'filter-deselected': !filterSrv.list[id].active}">
|
|
|
<div>
|
|
<div>
|
|
|
- <strong>{{filterSrv.list[id].type}}</strong>
|
|
|
|
|
- <span ng-show="!filterSrv.list[id].editing && isEditable(filterSrv.list[id])" class="filter-mandate" ng-click="filterSrv.list[id].editing = true">
|
|
|
|
|
- {{filterSrv.list[id].mandate}}
|
|
|
|
|
- </span>
|
|
|
|
|
- <span ng-show="!isEditable(filterSrv.list[id])">
|
|
|
|
|
- {{filterSrv.list[id].mandate}}
|
|
|
|
|
- </span>
|
|
|
|
|
-
|
|
|
|
|
- <span ng-show="filterSrv.list[id].editing">
|
|
|
|
|
- <select class="input-small" ng-model="filterSrv.list[id].mandate" ng-options="f for f in ['must','mustNot','either']"></select>
|
|
|
|
|
- </span>
|
|
|
|
|
-
|
|
|
|
|
<i class="filter-action pointer icon-remove" bs-tooltip="'Remove'" ng-click="remove(id)"></i>
|
|
<i class="filter-action pointer icon-remove" bs-tooltip="'Remove'" ng-click="remove(id)"></i>
|
|
|
<i class="filter-action pointer" ng-class="{'icon-check': filterSrv.list[id].active,'icon-check-empty': !filterSrv.list[id].active}" bs-tooltip="'Toggle'" ng-click="toggle(id)"></i>
|
|
<i class="filter-action pointer" ng-class="{'icon-check': filterSrv.list[id].active,'icon-check-empty': !filterSrv.list[id].active}" bs-tooltip="'Toggle'" ng-click="toggle(id)"></i>
|
|
|
<i class="filter-action pointer icon-edit" ng-hide="filterSrv.list[id].editing || !isEditable(filterSrv.list[id])" bs-tooltip="'Edit'" ng-click="filterSrv.list[id].editing = true"></i>
|
|
<i class="filter-action pointer icon-edit" ng-hide="filterSrv.list[id].editing || !isEditable(filterSrv.list[id])" bs-tooltip="'Edit'" ng-click="filterSrv.list[id].editing = true"></i>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div ng-hide="filterSrv.list[id].editing && isEditable(filterSrv.list[id])">
|
|
|
|
|
|
|
+ <div ng-hide="filterSrv.list[id].editing" style="margin-right: 35px;">
|
|
|
<ul class="unstyled">
|
|
<ul class="unstyled">
|
|
|
|
|
+ <li ng-if="filterSrv.list[id].name" class="dropdown">
|
|
|
|
|
+ {{filterSrv.list[id].name}} :
|
|
|
|
|
+ <a bs-dropdown="getMetricFilterOptions(filterSrv.list[id])">
|
|
|
|
|
+ {{filterSrv.list[id].value || 'All'}}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
<li ng-repeat="(key,value) in filterSrv.list[id] track by $index" ng-show="show_key(key)">
|
|
<li ng-repeat="(key,value) in filterSrv.list[id] track by $index" ng-show="show_key(key)">
|
|
|
<strong>{{key}}</strong> : {{value}}
|
|
<strong>{{key}}</strong> : {{value}}
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <form ng-show="filterSrv.list[id].editing && isEditable(filterSrv.list[id])">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <form ng-show="filterSrv.list[id].editing">
|
|
|
<ul class="unstyled">
|
|
<ul class="unstyled">
|
|
|
- <li ng-repeat="key in _.keys(filterSrv.list[id])" ng-show="show_key(key)">
|
|
|
|
|
|
|
+ <li ng-repeat="key in _.keys(filterSrv.list[id])" ng-show="edit_key(key)">
|
|
|
<strong>{{key}}</strong> : <input type='text' ng-model="filterSrv.list[id][key]">
|
|
<strong>{{key}}</strong> : <input type='text' ng-model="filterSrv.list[id][key]">
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -85,6 +80,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
- <i class="link icon-plus-sign" ng-click="add()" bs-tooltip="'Add a query filter'" data-placement="right"></i>
|
|
|
|
|
|
|
+ <i class="link icon-plus-sign" ng-click="add()" bs-tooltip="'Add metric filter / param'" data-placement="right"></i>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|