2018-07-18 12:38:43 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/order/api/Orders"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
|
|
|
data="orders">
|
|
|
|
</vn-crud-model>
|
|
|
|
<div margin-medium>
|
|
|
|
<vn-card margin-medium-v pad-medium>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id">Id</vn-th>
|
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
|
|
<vn-th field="companyFk">Company</vn-th>
|
|
|
|
<vn-th field="created" default-order="DESC">Created</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="order in orders" class="clickable"
|
2018-07-24 07:35:23 +00:00
|
|
|
ui-sref="order.card.catalogue({id: {{::order.id}}})">
|
2018-07-18 12:38:43 +00:00
|
|
|
<vn-td>{{::order.id}}</vn-td>
|
|
|
|
<vn-td>{{::order.clientFk}}</vn-td>
|
|
|
|
<vn-td>{{::order.companyFk}}</vn-td>
|
|
|
|
<vn-td>{{::order.created}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
|
|
|
</div>
|
|
|
|
<!-- <a ui-sref="ticket.create" vn-bind="+" fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-dialog class="dialog-summary"
|
|
|
|
vn-id="dialog-summary-ticket">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-ticket-summary ticket="$ctrl.ticketSelected"></vn-ticket-summary>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog> -->
|