2018-06-16 16:41:58 +02:00
|
|
|
<div id="imagesModal" class="modal">
|
2018-06-16 17:49:27 +02:00
|
|
|
<div class="modal-content modal-size-large">
|
|
|
|
<h3 class="caption"><?= $this->label('modal.images.title') ?></h3>
|
2018-07-08 22:22:56 +02:00
|
|
|
<div class="image-picker-empty-state">
|
|
|
|
<i class="image-picker-empty-state-icon i-images"></i>
|
|
|
|
<h4 class="h5"><?= $this->label('modal.images.no-images') ?></h4>
|
2019-03-08 00:04:25 +01:00
|
|
|
<?php
|
|
|
|
if ($this->user()->permissions()->has('pages.upload_files')):
|
|
|
|
?>
|
2018-07-08 22:22:56 +02:00
|
|
|
<p><?= $this->label('modal.images.no-images.upload') ?></p>
|
2018-10-14 21:57:19 +02:00
|
|
|
<button type="button" data-command="upload" data-upload-target="file-uploader"><i class="i-cloud-upload"></i> <?= $this->label('modal.action.upload-file') ?></button>
|
2019-03-08 00:04:25 +01:00
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
2018-07-08 22:22:56 +02:00
|
|
|
</div>
|
|
|
|
<select class="image-picker">
|
2018-06-16 16:41:58 +02:00
|
|
|
<?php
|
2018-07-08 22:22:56 +02:00
|
|
|
foreach ($page->images() as $image):
|
2018-06-16 16:41:58 +02:00
|
|
|
?>
|
2018-07-08 22:22:56 +02:00
|
|
|
<option value="<?= $this->pageUri($page) . $image ?>"><?= $image ?></option>
|
2018-06-16 16:41:58 +02:00
|
|
|
<?php
|
2018-07-08 22:22:56 +02:00
|
|
|
endforeach;
|
2018-06-16 16:41:58 +02:00
|
|
|
?>
|
2018-07-08 22:22:56 +02:00
|
|
|
</select>
|
|
|
|
<button type="button" data-dismiss="imagesModal"><?= $this->label('modal.action.cancel') ?></button>
|
|
|
|
<button class="button-accent button-right image-picker-confirm" data-dismiss="imagesModal"><?= $this->label('modal.action.continue') ?></button>
|
|
|
|
</div>
|
2018-06-16 16:41:58 +02:00
|
|
|
</div>
|