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

28 lines (27 loc) 1.29 kB
<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="'Activo'" sortable="'active'">{{item.active ? 'Sim' : 'Não'}}</td> <td data-title="'Alerta'" sortable="'name'">{{item.name}}</td> <td data-title="'De'"> <small ng-if="item.fromSelf">Próprio </small> <small ng-if="item.fromCoordinator">Chefia </small> <small>{{from.email.join()}}</small> </td> <td data-title="'Para'"> <small ng-if="item.toSelf">Próprio </small> <small ng-if="item.toCoordinator">Chefia </small> <small>{{to.email.join()}}</small> </td> <td data-title="'CC'"> <small ng-if="item.ccSelf">Próprio </small> <small ng-if="item.ccCoordinator">Chefia </small> <small>{{cc.email.join()}}</small> </td> <td data-title="'Anexo(s)'"><i ng-if="item.attachments ? item.attachments.length > 0 : false" class="fa fa-paperclip"></i></td> <td><button ng-click="openEdit(item)" type="button" class="btn btn-primary btn-xs"><span class="fa fa-pencil"></span> Editar</button></td> </tr> </table> </div> </div>