2020-04-28 12:26:02 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
auto-load="true"
|
2022-04-07 12:12:56 +00:00
|
|
|
filter="::$ctrl.filter"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimDms"
|
2020-03-16 10:58:14 +00:00
|
|
|
link="{claimFk: $ctrl.$params.id}"
|
2019-07-30 06:51:38 +00:00
|
|
|
limit="20"
|
2019-09-30 12:57:54 +00:00
|
|
|
data="$ctrl.photos">
|
2019-07-30 06:51:38 +00:00
|
|
|
</vn-crud-model>
|
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">
|
2020-01-09 07:18:13 +00:00
|
|
|
<section><vn-icon icon="image"></vn-icon></section>
|
2020-01-08 16:03:08 +00:00
|
|
|
<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
|
2020-06-12 12:28:29 +00:00
|
|
|
ng-style="{'background': 'url(' + $ctrl.getImagePath(photo.dmsFk) + ')'}"
|
2022-04-07 12:12:56 +00:00
|
|
|
zoom-image="{{$ctrl.getImagePath(photo.dmsFk)}}"
|
|
|
|
ng-if="photo.dms.contentType == 'image/jpeg'">
|
2019-09-30 12:57:54 +00:00
|
|
|
</section>
|
2022-04-08 12:33:00 +00:00
|
|
|
<video id="videobcg" muted="muted" controls ng-if="photo.dms.contentType == 'video/mp4'"
|
|
|
|
class="video">
|
|
|
|
<source src="{{$ctrl.getImagePath(photo.dmsFk)}}" type="video/mp4">
|
2022-04-07 12:12:56 +00:00
|
|
|
</video>
|
2020-01-08 16:03:08 +00:00
|
|
|
<section class="actions">
|
|
|
|
<vn-button
|
|
|
|
class="round"
|
2020-04-28 12:26:02 +00:00
|
|
|
ng-click="confirm.show($index)"
|
2020-01-08 16:03:08 +00:00
|
|
|
title="{{'Remove file' | translate}}"
|
|
|
|
tabindex="-1"
|
|
|
|
icon="delete">
|
|
|
|
</vn-button>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</vn-horizontal>
|
2019-07-30 06:51:38 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm"
|
|
|
|
message="This file will be deleted"
|
|
|
|
question="Are you sure you want to continue?"
|
2020-04-28 12:26:02 +00:00
|
|
|
on-accept="$ctrl.deleteDms($data)">
|
2020-01-08 16:03:08 +00:00
|
|
|
</vn-confirm>
|
2020-04-28 12:26:02 +00:00
|
|
|
<vn-float-button
|
2020-01-08 16:03:08 +00:00
|
|
|
icon="add"
|
2022-04-08 07:34:46 +00:00
|
|
|
vn-tooltip="Select file"
|
2020-01-08 16:03:08 +00:00
|
|
|
vn-bind="+"
|
2020-04-28 12:26:02 +00:00
|
|
|
ng-click="$ctrl.openUploadDialog()"
|
|
|
|
fixed-bottom-right>
|
2020-01-08 16:03:08 +00:00
|
|
|
</vn-float-button>
|