UNPKG

zettapi_client

Version:

Admin panel and client-side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project.

19 lines (18 loc) 1.12 kB
<div class="col-sm-12"> <div class="table-responsive"> <table ng-table="table.params" class="table table-bordered table-hover"> <tr ng-repeat="item in $data"> <td data-title="'Registado em'" sortable="'created_at'" class="number">{{item.created_at | date: 'yyyy-MM-dd HH:mm'}}</td> <td data-title="'Registado por'" sortable="'owner.username'">{{item.owner.username}}</td> <td data-title="'Cliente'" sortable="'customer.username'">{{item.customer.username}}</td> <td data-title="'# módulos'" sortable="'modules.length'">{{item.modules.length}}</td> <td data-title="'Fatura'" sortable="'invoice'" class="number">{{item.invoice}}</td> <td data-title="'Início'" sortable="'dateStart'" class="number">{{item.dateStart | date: 'yyyy-MM-dd'}}</td> <td data-title="'Fim'" sortable="'dateEnd'" class="number">{{item.dateEnd | date: 'yyyy-MM-dd'}}</td> <td class="text-right"> <entity-modal entity="{{entity}}" item="item" lookup="lookup" view="{{!isAdmin() || ''}}"></entity-modal> </td> </tr> </table> </div> </div>