31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
|
<form data-request="<?= $this->getEventHandler('onSelectDatabase') ?>">
|
||
|
<div class="modal-header">
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
|
<h4 class="modal-title">Bild aus Datenbank einfügen</h4>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<p>Wähle hier ein Bild aus</p>
|
||
|
|
||
|
<div class="responsive-database-grid">
|
||
|
<?php foreach ($images as $file): ?>
|
||
|
<label for="responsive-image-<?= $file->id ?>">
|
||
|
<input type="radio" name="image" id="responsive-image-<?= $file->id ?>" value="<?= $file->id ?>" data-select>
|
||
|
<img src="<?= $file->url ?>">
|
||
|
</label>
|
||
|
<?php endforeach; ?>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group textarea-field span-full">
|
||
|
<textarea name="title" class="form-control field-textarea size-tiny" placeholder="Titel"></textarea>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group textarea-field span-full">
|
||
|
<textarea name="description" class="form-control field-textarea size-tiny" placeholder="Beschreibung"></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
|
||
|
<button type="submit" class="btn btn-primary">Bild wählen</button>
|
||
|
</div>
|
||
|
</form>
|