Fixes on widget uploder

This commit is contained in:
Ludovic CANDELLIER
2021-04-15 23:58:51 +02:00
parent b90d633e6e
commit e298320119
14 changed files with 102 additions and 83 deletions

View File

@@ -2,23 +2,23 @@
@foreach($images as $key => $image)
<figure class="mr-2">
<img src="{{ $image['url'] }}" class="img-thumbnail img-caption" style="max-height:92px;">
@if ($can_edit ?? true)
<figcaption class="text-center pt-2">
<button type="button" class="btn btn-xs btn-outline-secondary">
<i class="fas fa-expand-alt"></i>
</button>
<figcaption class="text-center pt-2">
<button type="button" class="btn btn-xs btn-outline-secondary">
<i class="fas fa-expand-alt"></i>
</button>
@if ($can_edit ?? true)
<button type="button" class="btn btn-xs btn-outline-danger">
<i class="fas fa-trash" data-index="{{ $key }}"></i>
</button>
</figcaption>
@endif
@endif
</figcaption>
</figure>
@endforeach
@endif
@if ($can_edit ?? true)
<script>
<script>
@if ($can_edit ?? true)
{{ $prefix ?? '' }}handleDeleteImages();
{{ $prefix ?? '' }}handleEnlargeImages();
</script>
@endif
@endif
{{ $prefix ?? '' }}handleEnlargeImages();
</script>