2018-06-16 16:41:58 +02:00
|
|
|
<div id="imagesModal" class="modal">
|
2023-08-06 13:33:50 +02:00
|
|
|
<div class="modal-container modal-size-large">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="caption"><?= $this->translate('panel.modal.images.title') ?></h3>
|
2018-07-08 22:22:56 +02:00
|
|
|
</div>
|
2023-08-06 13:33:50 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="image-picker-empty-state">
|
|
|
|
<span class="image-picker-empty-state-icon"><?= $this->icon('image') ?></span>
|
|
|
|
<h4 class="h5"><?= $this->translate('panel.modal.images.noImages') ?></h4>
|
2024-01-01 22:34:39 +01:00
|
|
|
<?php if ($panel->user()->permissions()->has('pages.uploadFiles')): ?>
|
|
|
|
<p><?= $this->translate('panel.modal.images.noImages.upload') ?></p>
|
|
|
|
<button type="button" data-command="upload" data-upload-target="file-uploader"><?= $this->icon('cloud-upload') ?> <?= $this->translate('panel.modal.action.uploadFile') ?></button>
|
|
|
|
<?php endif ?>
|
2023-08-06 13:33:50 +02:00
|
|
|
</div>
|
|
|
|
<select class="image-picker">
|
2024-01-01 22:34:39 +01:00
|
|
|
<?php foreach ($page->images() as $image): ?>
|
|
|
|
<option value="<?= $page->uri($image, includeLanguage: false) ?>"><?= $image ?></option>
|
|
|
|
<?php endforeach ?>
|
2023-08-06 13:33:50 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" data-dismiss="imagesModal"><?= $this->icon('times-circle') ?> <?= $this->translate('panel.modal.action.cancel') ?></button>
|
|
|
|
<button type="button" class="button-accent button-right image-picker-confirm" data-dismiss="imagesModal"><?= $this->icon('check-circle') ?> <?= $this->translate('panel.modal.action.continue') ?></button>
|
|
|
|
</div>
|
2019-03-13 16:24:11 +01:00
|
|
|
</div>
|
2018-06-16 16:41:58 +02:00
|
|
|
</div>
|