2019-07-04 15:34:42 +01:00
< div class = "animated fadeIn" >
2019-07-12 20:18:28 +01:00
< div class = "row" >
< div class = "col-lg-12" >
< div class = "card" >
< div class = "card-header" >
< strong > List of Suppliers< / strong >
< small > This lists all suppliers that have been submitted.< / small >
< / div >
< div * ngIf = "supplierListAvailable" class = "card-block" >
< table class = "table table-striped table-hover" >
< thead >
< tr >
< th ( click ) = " sortName ( ) " > Name < span class = "fa-stack" >
< i * ngIf = "sortBy !== 'name' || sortDir == 'asc'" class = "fa fa-sort-up fa-stack-1x" > < / i >
< i * ngIf = "sortBy !== 'name' || sortDir == 'desc'" class = "fa fa-sort-down fa-stack-1x" > < / i >
< / span > < / th >
< th ( click ) = " sortPostcode ( ) " > Postcode < span class = "fa-stack" >
< i * ngIf = "sortBy !== 'postcode' || sortDir == 'asc'" class = "fa fa-sort-up fa-stack-1x" > < / i >
< i * ngIf = "sortBy !== 'postcode' || sortDir == 'desc'" class = "fa fa-sort-down fa-stack-1x" > < / i >
< / span > < / th >
< th ( click ) = " sortSpend ( ) " > Spend < span class = "fa-stack" >
< i * ngIf = "sortBy !== 'spend' || sortDir == 'asc'" class = "fa fa-sort-up fa-stack-1x" > < / i >
< i * ngIf = "sortBy !== 'spend' || sortDir == 'desc'" class = "fa fa-sort-down fa-stack-1x" > < / i >
< / span > < / th >
< / tr >
< / thead >
< tbody >
< tr supplier-result * ngFor = "let supplier of supplierList | paginate: paginateConfig" [ supplier ] = " supplier " > < / tr >
< / tbody >
< / table >
< pagination-template # p = "paginationApi"
[id]="paginateConfig.id"
(pageChange)="loadSuppliers($event)">
< ul class = "pagination" >
< li class = "page-item" [ class . disabled ] = " p . isFirstPage ( ) " >
< a class = "page-link clickable" * ngIf = "!p.isFirstPage()" ( click ) = " p . previous ( ) " > Prev< / a >
< / li >
< li * ngFor = "let page of p.pages" class = "page-item" [ class . active ] = " p . getCurrent ( ) = = = page . value " >
< a class = "page-link clickable" ( click ) = " p . setCurrent ( page . value ) " * ngIf = "p.getCurrent() !== page.value" >
< span > {{ page.label }}< / span >
< / a >
< div class = "page-link" * ngIf = "p.getCurrent() === page.value" >
< span > {{ page.label }}< / span >
< / div >
< / li >
< li class = "page-item" [ class . disabled ] = " p . isLastPage ( ) " >
< a class = "page-link clickable" * ngIf = "!p.isLastPage()" ( click ) = " p . next ( ) " > Next< / a >
< / li >
< / ul >
< / pagination-template >
2019-07-15 12:38:06 +01:00
< select ( change ) = " loadSuppliers ( 1 ) " [ ( ngModel ) ] = " perPage " >
2019-08-22 16:59:51 +01:00
< option value = "10" > 10< / option >
< option value = "20" > 20< / option >
< option value = "50" > 50< / option >
< option value = "100" > 100< / option >
< option value = "200" > 200< / option >
2019-07-15 12:38:06 +01:00
< / select >
2019-07-12 20:18:28 +01:00
< / div >
< div * ngIf = "!supplierListAvailable" class = "card-block" >
No Suppliers available.
< / div >
< / div >
< / div >
2019-07-04 16:10:50 +01:00
< / div >
2019-07-12 20:18:28 +01:00
< / div >