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>
|
|
|
|
<app formid="<?php echo $this->getId(); ?>" name="<?= $this->getFieldName() ?>" :handlers="{
|
|
|
|
onUpload: '<?= $this->getEventHandler('onUpload') ?>'
|
|
|
|
}"
|
|
|
|
:crop-options="{
|
|
|
|
aspectRatio: <?= $this->aspectRatio ?: 'null' ?>,
|
|
|
|
minWidth: <?= $this->minWidth ?: '0' ?>,
|
|
|
|
}"
|
|
|
|
mode="<?= $this->displayMode ?>"
|
|
|
|
></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 ?>
|