2019-09-30 12:57:54 +00:00
|
|
|
<vn-crud-model vn-id="model" auto-load="true"
|
2019-07-30 06:51:38 +00:00
|
|
|
url="/api/ClaimDms"
|
|
|
|
link="{claimFk: $ctrl.$stateParams.id}"
|
|
|
|
limit="20"
|
2019-09-30 12:57:54 +00:00
|
|
|
data="$ctrl.photos">
|
2019-07-30 06:51:38 +00:00
|
|
|
</vn-crud-model>
|
2019-10-03 09:37:44 +00:00
|
|
|
|
2019-10-16 06:56:13 +00:00
|
|
|
<section class="drop-zone" vn-droppable="$ctrl.onDrop($event)">
|
2019-10-03 09:37:44 +00:00
|
|
|
<section><vn-icon icon="add_circle"></vn-icon></section>
|
|
|
|
<section translate>Drag & Drop files here...</section>
|
|
|
|
</section>
|
2019-10-10 07:26:44 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-lg">
|
|
|
|
<vn-horizontal class="photo-list">
|
|
|
|
<section class="photo" ng-repeat="photo in $ctrl.photos">
|
2019-10-18 19:36:30 +00:00
|
|
|
<section class="image vn-shadow" on-error-src
|
2019-10-10 07:26:44 +00:00
|
|
|
ng-style="{'background': 'url(/api/dms/' + photo.dmsFk + '/downloadFile?access_token=' + $ctrl.accessToken + ')'}"
|
|
|
|
zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
|
|
|
|
</section>
|
|
|
|
<section class="actions">
|
2019-10-18 19:36:30 +00:00
|
|
|
<vn-button
|
|
|
|
class="round"
|
2019-10-10 07:26:44 +00:00
|
|
|
ng-click="$ctrl.showDeleteConfirm($index)"
|
|
|
|
title="{{'Remove file' | translate}}"
|
2019-10-18 19:36:30 +00:00
|
|
|
tabindex="-1"
|
|
|
|
icon="delete">
|
|
|
|
</vn-button>
|
2019-10-10 07:26:44 +00:00
|
|
|
</section>
|
2019-09-30 12:57:54 +00:00
|
|
|
</section>
|
2019-10-10 07:26:44 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</vn-data-viewer>
|
2019-07-30 06:51:38 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm"
|
|
|
|
message="This file will be deleted"
|
|
|
|
question="Are you sure you want to continue?"
|
|
|
|
on-response="$ctrl.deleteDms(response)">
|
|
|
|
</vn-confirm>
|