2020-10-21 00:02:20 +02:00
|
|
|
<?php if ($this->previewMode && !$fileList->count()): ?>
|
2020-10-25 13:54:01 +01:00
|
|
|
<div class="form-control">
|
|
|
|
<?= $value ?>
|
|
|
|
</div>
|
2020-10-21 00:02:20 +02:00
|
|
|
<?php else: ?>
|
2020-10-25 13:54:01 +01:00
|
|
|
<div data-responsiveimage>
|
|
|
|
<div>
|
2020-10-25 23:02:13 +01:00
|
|
|
<app formid="<?php echo $this->getId(); ?>" name="<?= $name ?>" :handlers="{
|
|
|
|
onUpload: '<?= $this->getEventHandler('onUpload') ?>',
|
2020-10-28 01:28:36 +01:00
|
|
|
onOpenDatabase: '<?= $this->getEventHandler('onOpenDatabase') ?>',
|
2020-10-25 23:02:13 +01:00
|
|
|
onDelete: '<?= $this->getEventHandler('onDelete') ?>'
|
2020-10-25 13:54:01 +01:00
|
|
|
}"
|
|
|
|
:crop-options="{
|
2020-10-25 23:02:13 +01:00
|
|
|
aspectRatio: <?= $aspectRatio ?>,
|
|
|
|
minWidth: <?= $minWidth ?>,
|
2020-10-29 22:25:28 +01:00
|
|
|
types: <?= $croppableTypes; ?>
|
2020-10-25 13:54:01 +01:00
|
|
|
}"
|
2020-10-25 23:02:13 +01:00
|
|
|
:value="<?= $value; ?>"
|
2020-10-27 01:49:52 +01:00
|
|
|
:meta="<?= $meta; ?>"
|
2020-10-25 13:54:01 +01:00
|
|
|
></app>
|
2020-10-21 00:02:20 +02:00
|
|
|
</div>
|
2020-10-25 13:54:01 +01:00
|
|
|
</div>
|
2020-10-21 00:02:20 +02:00
|
|
|
|
|
|
|
<?php endif ?>
|