45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
<vn-crud-model vn-id="model" auto-load="true"
|
|
url="ClaimDms"
|
|
link="{claimFk: $ctrl.$stateParams.id}"
|
|
limit="20"
|
|
data="$ctrl.photos">
|
|
</vn-crud-model>
|
|
|
|
<vn-horizontal class="photo-list drop-zone" vn-droppable="$ctrl.onDrop($event)">
|
|
<section class="empty-rows" ng-if="!$ctrl.photos.length">
|
|
<section><vn-icon icon="image"></vn-icon></section>
|
|
<section translate>Drag & Drop photos here...</section>
|
|
</section>
|
|
<section class="photo" ng-repeat="photo in $ctrl.photos">
|
|
<section class="image vn-shadow" on-error-src
|
|
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">
|
|
<vn-button
|
|
class="round"
|
|
ng-click="$ctrl.showDeleteConfirm($index)"
|
|
title="{{'Remove file' | translate}}"
|
|
tabindex="-1"
|
|
icon="delete">
|
|
</vn-button>
|
|
</section>
|
|
</section>
|
|
</vn-horizontal>
|
|
|
|
<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>
|
|
<vn-float-button fixed-bottom-right
|
|
icon="add"
|
|
vn-tooltip="Select photo"
|
|
vn-bind="+"
|
|
ng-click="$ctrl.openUploadDialog()">
|
|
</vn-float-button>
|