40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
<?php if ($this->previewMode && !$fileList->count()): ?>
|
|
|
|
<span class="form-control"><?= e(trans('backend::lang.form.preview_no_files_message')) ?></span>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php switch ($displayMode):
|
|
|
|
case 'image-single': ?>
|
|
<?= $this->makePartial('image_single') ?>
|
|
<?php break ?>
|
|
|
|
<?php case 'image-multi': ?>
|
|
<?= $this->makePartial('image_multi') ?>
|
|
<?php break ?>
|
|
|
|
<?php case 'file-single': ?>
|
|
<?= $this->makePartial('file_single') ?>
|
|
<?php break ?>
|
|
|
|
<?php case 'file-multi': ?>
|
|
<?= $this->makePartial('file_multi') ?>
|
|
<?php break ?>
|
|
|
|
<?php endswitch ?>
|
|
|
|
<!-- Error template -->
|
|
<script type="text/template" id="<?= $this->getId('errorTemplate') ?>">
|
|
<div class="popover-head">
|
|
<h3><?= e(trans('backend::lang.fileupload.upload_error')) ?></h3>
|
|
<p>{{errorMsg}}</p>
|
|
<button type="button" class="close" data-dismiss="popover" aria-hidden="true">×</button>
|
|
</div>
|
|
<div class="popover-body">
|
|
<button class="btn btn-secondary" data-remove-file><?= e(trans('backend::lang.fileupload.remove_file')) ?></button>
|
|
</div>
|
|
</script>
|
|
|
|
<?php endif ?>
|