zettapi_client
Version:
Client side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project
15 lines (14 loc) • 819 B
HTML
<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="'Nome'" sortable="'name'">{{item.name}}</td>
<td data-title="'Próximo'">{{item.next | date: 'yyyy-MM-dd'}}</td>
<td data-title="'País'" sortable="'country.name.common'">{{item.country.name.common}}</td>
<td data-title="'Âmbito'" sortable="'isLocal'">{{item.isLocal ? 'Municipal' : 'Nacional'}}</td>
<td><button ng-click="openEdit(item)" type="button" class="btn btn-default btn-xs"><span class="fa fa-edit"></span> Editar</button></td>
<td><button ng-click="remove(item)" type="button" class="btn btn-danger btn-xs"><span class="fa fa-trash-o"></span> Apagar</button></td>
</tr>
</table>
</div>
</div>