Skip to content

Commit

Permalink
#110 Fix the toolbars
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 23, 2018
1 parent eb46e97 commit 9ce8983
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions www/src/app/pages/analyzers/analyzers.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h1>Analyzers ({{$ctrl.pagination.total}})</h1>
<div>
<label>Page size</label>
</div>
<div>
<select class="form-control" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
<ul class="pull-right" ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total"
<div>
<ul class="pull-left mr-xs" ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total"
ng-change="$ctrl.load()" ng-model="$ctrl.pagination.current" boundary-links="true" items-per-page="$ctrl.pagination.pageSize"
previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;" max-size="3" rotate="false"></ul>
<select class="form-control" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
</div>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions www/src/app/pages/jobs/jobs.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ <h1>Jobs History ({{$ctrl.pagination.total}})</h1>
</div>
</div>
<div class="form-group pull-right">
<div><label>Page size</label></div>
<div><label>Pagination</label></div>
<div>
<select class="form-control" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
<ul class="pull-right" ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total"
<ul class="pull-left mr-xs" ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total"
ng-change="$ctrl.load()" ng-model="$ctrl.pagination.current" boundary-links="true" items-per-page="$ctrl.pagination.pageSize"
previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;" max-size="3" rotate="false"></ul>
<select class="form-control" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
</div>
</div>
</form>
Expand Down
8 changes: 4 additions & 4 deletions www/src/app/pages/responders/responders.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h1>Responders ({{$ctrl.pagination.total}})</h1>
<div>
<label>Page size</label>
</div>
<div>
<select class="form-control" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
<ul class="pull-right" ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total"
<div>
<ul class="pull-left mr-xs" ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total"
ng-change="$ctrl.load()" ng-model="$ctrl.pagination.current" boundary-links="true" items-per-page="$ctrl.pagination.pageSize"
previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;" max-size="3" rotate="false"></ul>
<select class="form-control" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
</div>
</div>
</form>
Expand All @@ -46,7 +46,7 @@ <h1>Responders ({{$ctrl.pagination.total}})</h1>
<ul ng-show="$ctrl.pagination.total > $ctrl.pagination.pageSize" uib-pagination total-items="$ctrl.pagination.total" ng-change="$ctrl.load()"
ng-model="$ctrl.pagination.current" boundary-links="true" items-per-page="$ctrl.pagination.pageSize" previous-text="&lsaquo;"
next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;" max-size="3" rotate="false"></ul>
<select class="ml-xs form-control pull-right " ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
<select class="ml-xs form-control pull-right" ng-model="$ctrl.pagination.pageSize" ng-change="$ctrl.load()" ng-options="v as (v + ' / page') for v in [10, 50, 100, 1000]"></select>
</div>
</div>
</div>
Expand Down
8 changes: 5 additions & 3 deletions www/src/assets/styles/sass/paginable-table.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.paginable-page {
.box-tools {
>select {
width: 120px;
width: 100px;
}
}
.table-toolbar {
Expand All @@ -14,8 +14,10 @@
input.form-control {
width: 300px;
}
>select {
width: 120px;
select {
&.form-control {
width: 100px;
}
}
multiselect {
width: 150px;
Expand Down

0 comments on commit 9ce8983

Please sign in to comment.