34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/client/api/Mandates"
|
|
filter="::$ctrl.filter"
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
limit="20"
|
|
data="mandates"
|
|
auto-load="false">
|
|
</vn-crud-model>
|
|
<div class="vn-w-md">
|
|
<vn-card>
|
|
<vn-table model="model">
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th field="id" number>Id</vn-th>
|
|
<vn-th field="companyFk">Company</vn-th>
|
|
<vn-th field="mandateTypeFk">Type</vn-th>
|
|
<vn-th field="created" default-order="DESC">Register date</vn-th>
|
|
<vn-th field="finished">End date</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="mandate in mandates">
|
|
<vn-td number>{{::mandate.id}}</vn-td>
|
|
<vn-td>{{::mandate.company.code}}</vn-td>
|
|
<vn-td>{{::mandate.mandateType.name}}</vn-td>
|
|
<vn-td>{{::mandate.created | dateTime:'dd/MM/yyyy HH:mm' }}</vn-td>
|
|
<vn-td>{{::mandate.finished | dateTime:'dd/MM/yyyy HH:mm' || '-'}}</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</vn-card>
|
|
<vn-pagination model="model"></vn-pagination>
|
|
</vn-vertical> |