2020-01-13 10:53:10 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="TravelThermographs"
|
|
|
|
data="$ctrl.travelThermographs"
|
|
|
|
order="created"
|
|
|
|
link="{travelFk: $ctrl.$params.id}"
|
|
|
|
filter="$ctrl.filter"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer model="model">
|
|
|
|
<form name="form">
|
|
|
|
<vn-card class="vn-mt-md">
|
|
|
|
<vn-table model="model" auto-load="false">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th>Code</vn-th>
|
|
|
|
<vn-th>Temperature</vn-th>
|
|
|
|
<vn-th expand>State</vn-th>
|
|
|
|
<vn-th>Destination</vn-th>
|
|
|
|
<vn-th>Created</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="thermograph in $ctrl.travelThermographs">
|
2020-02-28 13:18:55 +00:00
|
|
|
<vn-td>{{::thermograph.thermographFk}} </vn-td>
|
|
|
|
<vn-td>{{::thermograph.temperature}} </vn-td>
|
|
|
|
<vn-td expand>{{::thermograph.result}}</vn-td>
|
|
|
|
<vn-td>{{::thermograph.warehouse.name}}</vn-td>
|
|
|
|
<vn-td>{{::thermograph.created | date: 'dd/MM/yyyy'}}</vn-td>
|
2020-01-21 11:21:53 +00:00
|
|
|
<vn-td shrink>
|
2020-06-12 12:28:29 +00:00
|
|
|
<vn-icon-button title="{{'Download file' | translate}}"
|
|
|
|
icon="cloud_download"
|
|
|
|
ng-click="$ctrl.downloadFile(thermograph.dmsFk)">
|
|
|
|
</vn-icon-button>
|
2020-01-21 11:21:53 +00:00
|
|
|
</vn-td>
|
2020-02-28 07:19:20 +00:00
|
|
|
<vn-td shrink>
|
2020-02-28 13:18:55 +00:00
|
|
|
<vn-icon-button ui-sref="travel.card.thermograph.edit({thermographId: {{::thermograph.id}}})"
|
2020-02-28 07:19:20 +00:00
|
|
|
icon="edit"
|
|
|
|
title="{{'Edit file' | translate}}">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
2020-01-13 10:53:10 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
|
|
|
ng-click="$ctrl.showDeleteConfirm($index)"
|
|
|
|
title="{{'Remove thermograph' | translate}}"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</form>
|
|
|
|
</vn-data-viewer>
|
|
|
|
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm"
|
2020-01-21 11:21:53 +00:00
|
|
|
question="Are you sure you want to remove the thermograph?"
|
|
|
|
on-accept="$ctrl.deleteThermograph()">
|
2020-01-13 10:53:10 +00:00
|
|
|
</vn-confirm>
|
2020-01-17 07:43:10 +00:00
|
|
|
|
|
|
|
<a
|
|
|
|
ui-sref="travel.card.thermograph.create"
|
|
|
|
vn-tooltip="Add thermograph"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|