21 lines
669 B
HTML
21 lines
669 B
HTML
<?php if ($this->previewMode && !$fileList->count()): ?>
|
|
<div class="form-control">
|
|
<?= $value ?>
|
|
</div>
|
|
<?php else: ?>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif ?>
|