salix/modules/claim/front/dms/index/index.html

45 lines
1.6 KiB
HTML
Raw Normal View History

<vn-crud-model vn-id="model" auto-load="true"
url="ClaimDms"
2019-07-30 06:51:38 +00:00
link="{claimFk: $ctrl.$stateParams.id}"
limit="20"
data="$ctrl.photos">
2019-07-30 06:51:38 +00:00
</vn-crud-model>
2019-10-03 09:37:44 +00:00
2020-01-08 16:03:08 +00:00
<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="insert_drive_file"></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>
2020-01-08 16:03:08 +00:00
<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>
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?"
2019-10-30 15:57:14 +00:00
on-response="$ctrl.deleteDms($response)">
2020-01-08 16:03:08 +00:00
</vn-confirm>
<vn-float-button fixed-bottom-right
icon="add"
vn-tooltip="Select photo"
vn-bind="+"
ng-click="$ctrl.openUploadDialog()">
</vn-float-button>