#909 claim.index

This commit is contained in:
Gerard 2018-12-12 09:20:31 +01:00
parent 3b9df59df2
commit a5132e33e5
2 changed files with 10 additions and 6 deletions

View File

@ -31,7 +31,10 @@
</vn-tr> </vn-tr>
</vn-thead> </vn-thead>
<vn-tbody> <vn-tbody>
<vn-tr ng-repeat="claim in claims" ui-sref="claim.card.summary({id: claim.id})" class=clickable> <a
ng-repeat="claim in claims"
class="{{::$ctrl.compareDate(ticket.shipped)}} clickable vn-tr"
ui-sref="claim.card.summary({id: claim.id})">
<vn-td number>{{::claim.id}}</vn-td> <vn-td number>{{::claim.id}}</vn-td>
<vn-td> <vn-td>
<span class="link" ng-click="$ctrl.showDescriptor($event, claim.client.id)"> <span class="link" ng-click="$ctrl.showDescriptor($event, claim.client.id)">
@ -48,7 +51,7 @@
icon="desktop_windows"> icon="desktop_windows">
</vn-icon-button> </vn-icon-button>
</vn-td> </vn-td>
</vn-tr> </a>
</vn-tbody> </vn-tbody>
<vn-empty-rows ng-if="model.data.length === 0" translate> <vn-empty-rows ng-if="model.data.length === 0" translate>
No results No results

View File

@ -39,11 +39,12 @@
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete <vn-autocomplete
vn-one vn-one
label="Worker"
field="filter.workerFk" field="filter.workerFk"
url="/claim/api/Workers" url="/client/api/Clients/activeWorkersWithRole"
show-field="firstName" search-function="{firstName: $search}"
value-field="id"> value-field="id"
where="{role: 'employee'}"
label="Worker">
<tpl-item>{{firstName}} {{name}}</tpl-item> <tpl-item>{{firstName}} {{name}}</tpl-item>
</vn-autocomplete> </vn-autocomplete>
</vn-horizontal> </vn-horizontal>