salix/client/claim/src/index/index.html

57 lines
2.2 KiB
HTML
Raw Normal View History

2018-08-07 09:57:11 +00:00
<vn-crud-model
vn-id="model"
2018-08-07 10:48:55 +00:00
url="/claim/api/Claims"
2018-08-07 09:57:11 +00:00
filter="::$ctrl.filter"
limit="20"
2018-08-07 10:48:55 +00:00
data="claims"
2018-08-07 09:57:11 +00:00
auto-load="false">
</vn-crud-model>
<div margin-medium>
<div class="vn-list">
<vn-card pad-medium-h>
<vn-searchbar
panel="vn-ticket-search-panel"
model="model"
expr-builder="$ctrl.exprBuilder(param, value)">
</vn-searchbar>
</vn-card>
</div>
<vn-card margin-medium-v pad-medium>
2018-08-07 10:48:55 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="id" number>Id</vn-th>
<vn-th field="clientFk" number>Client Id</vn-th>
<vn-th field="clientFk">Client</vn-th>
<vn-th field="created">Created</vn-th>
<vn-th field="workerFk">Worker</vn-th>
<vn-th field="observation">Observation</vn-th>
<vn-th field="claimStateFk">State</vn-th>
<vn-th></vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
2018-08-27 09:48:37 +00:00
<vn-tr ng-repeat="claim in claims" ui-sref="claim.card.detail({id: claim.id})" class=clickable>
2018-08-07 10:48:55 +00:00
<vn-td number>{{::claim.id}}</vn-td>
<vn-td number>{{::claim.client.id}}</vn-td>
<vn-td>{{::claim.client.name}}</vn-td>
<vn-td>{{::claim.created | date:'dd/MM/yyyy'}}</vn-td>
<vn-td>{{::claim.worker.firstName}} {{::claim.worker.name}}</vn-td>
<vn-td>{{::claim.observation}}</vn-td>
<vn-td>{{::claim.claimState.description}}</vn-td>
<vn-td>
2018-08-07 09:57:11 +00:00
<vn-icon-button
ng-click="$ctrl.preview($event, ticket)"
vn-tooltip="Preview"
icon="desktop_windows">
</vn-icon-button>
2018-08-07 10:48:55 +00:00
</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
2018-08-07 09:57:11 +00:00
</vn-card>
<vn-pagination
model="model"
scroll-selector="ui-view">
</vn-pagination>
2018-08-07 10:48:55 +00:00
</div>