ORIENT/modules/backend/formwidgets/fileupload/partials/_fileupload.htm

31 lines
879 B
HTML

<?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>Upload error</h3>
<p>{{errorMsg}}</p>
<button type="button" class="close" data-dismiss="popover" aria-hidden="true">&times;</button>
</div>
<div class="popover-body">
<button class="btn btn-danger" data-remove-file>Remove file</button>
</div>
</script>