UNPKG

zettapi_client

Version:

Client side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project

22 lines (21 loc) 930 B
<div class="col-sm-12"> <div class="table-responsive"> <table ng-table="table.params" class="table table-striped table-condensed"> <tr ng-repeat="item in $data"> <td data-title="'Utilizador'" sortable="'username'">{{item.username}}</td> <td data-title="'Email'" sortable="'email'">{{item.email}}</td> <td data-title="'Perfil'" sortable="'role.name'">{{item.role.name}} - nível {{item.role.approvalLevel}} {{item.role.admin ? '(administrador)' : ''}}</td> <td> <button ng-click="openEdit(item)" type="button" class="btn btn-primary btn-xs"> <span class="fa fa-pencil"></span> Editar </button> </td> <td> <button ng-click="remove(item)" ng-if="item.role.approvalLevel < login.role.approvalLevel" type="button" class="btn btn-danger btn-xs"> <span class="fa fa-trash-o"></span> Apagar </button> </td> </tr> </table> </div> </div>