25 lines
858 B
HTML
25 lines
858 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="<?= $name ?>" :handlers="{
|
|
onUpload: '<?= $this->getEventHandler('onUpload') ?>',
|
|
onOpenDatabase: '<?= $this->getEventHandler('onOpenDatabase') ?>',
|
|
onDelete: '<?= $this->getEventHandler('onDelete') ?>'
|
|
}"
|
|
:crop-options="{
|
|
aspectRatio: <?= $aspectRatio ?>,
|
|
minWidth: <?= $minWidth ?>,
|
|
types: <?= $croppableTypes; ?>
|
|
}"
|
|
:value="<?= $value; ?>"
|
|
:meta="<?= $meta; ?>"
|
|
></app>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif ?>
|