rsanchez
2017-03-19 280daa7f3f858ecfef9c91ffd5dea1007f021048
securis/src/main/webapp/src/app/license.list.component.html
similarity index 81%rename from securis/src/main/webapp/src/app/license.list.component.htmlrename to securis/src/main/webapp/src/app/listing/license.list.component.html
....@@ -11,15 +11,19 @@
1111 </span>
1212 <td-search-box #searchBox class="push-right-sm" placeholder="Search here" (searchDebounce)="search($event)" flex>
1313 </td-search-box>
14
- <button md-mini-fab color="accent" (click)="createLicense()">
15
- <md-icon>add</md-icon>
14
+ <button md-mini-fab color="accent" (click)="create()" [mdTooltip]="$L.get('Create a new license')">
15
+ <md-icon>add</md-icon>
1616 </button>
1717 <md-toolbar-row *ngIf="!!pack">
18
- <md-chip-list flex="80" style="margin-left: 70px;">
18
+ <md-chip-list flex="70" style="margin-left: 70px;">
1919 <md-chip selected [mdTooltip]="$L.get('field.application_name')" color="primary">{{pack.application_name}} </md-chip>
2020 <md-chip selected [mdTooltip]="$L.get('field.organization_id')" color="accent">{{pack.organization_name}} </md-chip>
2121 <md-chip selected [mdTooltip]="$L.get('field.license_type_id')" color="accent">{{pack.licensetype_code}} </md-chip>
22
- <md-chip selected [mdTooltip]="$L.get('field.num_available')" color="accent">{{pack.num_available}} </md-chip>
22
+ </md-chip-list>
23
+ <span flex></span>
24
+ <md-chip-list>
25
+ <md-chip [mdTooltip]="$L.get('field.num_available')" color="secondary" [class.bgc-red-A100]="pack.num_available <= 0">
26
+ <span i18n="field.num_available"></span>: {{pack.num_available}} </md-chip>
2327 </md-chip-list>
2428 </md-toolbar-row>
2529 </md-toolbar>
....@@ -54,7 +58,7 @@
5458
5559 <template tdDataTableTemplate="menu" let-row="row" let-index="index">
5660 <div layout="row" layout-align="end center">
57
- <button md-icon-button (click)="editLicense(row)" color="primary"><md-icon>edit</md-icon></button>
61
+ <button md-icon-button (click)="edit(row.id)" color="primary"><md-icon>edit</md-icon></button>
5862 <button md-icon-button [mdMenuTriggerFor]="licenseMenu" aria-label="License menu">
5963 <md-icon>more_vert</md-icon>
6064 </button>
....@@ -66,7 +70,7 @@
6670 </div>
6771 </template>
6872 </td-data-table>
69
- <td-paging-bar #pagingBar [pageSizes]="[10, 20, 40]" [total]="filteredTotal" (change)="page($event)" [hidden]="pagingBar.total <= 10" >
73
+ <td-paging-bar #pagingBar [pageSizes]="[10, 25, 50, 100]" [total]="filteredTotal" (change)="page($event)" [hidden]="pagingBar.total <= 10" >
7074 <span i18n td-paging-bar-label hide-xs>Rows per page:</span> {{pagingBar.range}} <span hide-xs>of {{pagingBar.total}}</span>
7175 </td-paging-bar>
7276 </div>