-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1817 Update dashboard section to use query api + sorting + filtering…
… + pagination
- Loading branch information
Showing
6 changed files
with
278 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ body { | |
} | ||
|
||
.container-main { | ||
padding-top: 60px; | ||
padding-top: 80px; | ||
} | ||
|
||
.marked>table, .markdown>table { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div class="row"> | ||
<div class="col-md-12 active-filters"> | ||
<h4>Filters</h4> | ||
|
||
<form ng-submit="$vm.search()"> | ||
<div class="row mb-xxxs" ng-repeat="filter in $vm.filtering.context.filters track by $index"> | ||
<div class="col-sm-4 col-md-4 col-lg-2"> | ||
<div class="input-group"> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-default" type="button" ng-click="$vm.removeFilter($index)"> | ||
<i class="fa fa-times text-danger"></i> | ||
</button> | ||
</span> | ||
<select class="form-control" ng-model="filter.field" | ||
ng-options="item for item in $vm.filtering.attributeKeys" | ||
ng-change="$vm.filtering.setFilterField(filter, config.entity)"></select> | ||
</div> | ||
</div> | ||
<div class="col-sm-8 col-md-8 col-lg-6"> | ||
<filter-editor metadata="$vm.filtering.metadata" filter="filter" entity="$vm.filtering.entity"></filter-editor> | ||
</div> | ||
</div> | ||
<div class="mv-xs row"> | ||
<div class="col-sm-12 col-md-12 col-lg-8"> | ||
<a href class="btn btn-sm btn-link btn-clear" ng-click="$vm.filtering.addFilter()"> | ||
<i class="fa fa-plus"></i> Add a filter | ||
</a> | ||
<a href class="btn btn-sm btn-danger" ng-click="$vm.clearFilters()" ng-if="$vm.filtering.context.filters.length > 0"> | ||
<i class="fa fa-times"></i> Clear | ||
</a> | ||
<button href class="btn btn-sm btn-primary pull-right" type="submit" ng-if="$vm.filtering.context.filters.length > 0"> | ||
<i class="fa fa-search"></i> Search | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="btn-toolbar" role="toolbar"> | ||
|
||
<button class="btn btn-sm btn-primary" type="button" ng-click="$vm.addDashboard()">Create new Dashboard</button> | ||
|
||
<button class="btn btn-sm btn-default" type="button" ng-click="$vm.importDashboard()">Import Dashboard</button> | ||
|
||
<div class="btn-group pull-right" role="group"> | ||
<page-sizer collection="$vm.list" sizes="[10, 15, 30, 100]"></page-sizer> | ||
</div> | ||
|
||
<div class="btn-group pull-right" role="group"> | ||
<button class="btn btn-sm" ng-class="{true: 'btn-primary', false:'btn-default'}[$vm.filtering.context.showFilters]" type="button" ng-click="$vm.toggleFilters()"> | ||
<i class="fa fa-search"></i> Filters | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |