diff options
| author | Dennis Benz <dennis.benz@uni-osnabrueck.de> | 2023-09-28 13:20:17 +0200 |
|---|---|---|
| committer | Dennis Benz <dennis.benz@uni-osnabrueck.de> | 2023-09-28 13:31:54 +0200 |
| commit | 3872927485cd6a60bac61a6e6700c17a0f28e78f (patch) | |
| tree | 4a1b8230511e8a1840c4abede77a51503e7d0495 /app/views/admin/banner/edit.php | |
| parent | 2bbcfb7bbda30fc0588c1093c9eef36f27d22a60 (diff) | |
Additional banner for mobile view, ref #3231tic-3231
Diffstat (limited to 'app/views/admin/banner/edit.php')
| -rw-r--r-- | app/views/admin/banner/edit.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/admin/banner/edit.php b/app/views/admin/banner/edit.php index 9bf48f5..b99e108 100644 --- a/app/views/admin/banner/edit.php +++ b/app/views/admin/banner/edit.php @@ -18,6 +18,8 @@ <fieldset> <label> + <?= _('Banner:') ?><br> + <? if ($banner['banner_path']) : ?> <?= $banner->toImg(['style' => 'max-width:500px']) ?> <? else : ?> @@ -32,6 +34,22 @@ </label> <label> + <?= _('Mobiles Banner (optional):') ?><br> + + <? if ($banner['banner_mobile_path']) : ?> + <?= $banner->toImg(['style' => 'max-width:500px'], true) ?> + <? else : ?> + <?= _('Noch kein Bild hochgeladen') ?> + <? endif; ?><br> + + <label class="file-upload"> + <?= _('Bilddatei auswählen') ?> + <input id="imgfile_mobile" name="imgfile_mobile" type="file" accept="image/*"> + <input type="hidden" name="banner_mobile_path" value="<?= $banner['banner_mobile_path'] ?>"> + </label> + </label> + + <label> <?= _('Beschreibung:') ?> <input type="text" id="description" name="description" value="<?= htmlReady($banner['description']) ?>" size="40" maxlength="254"> </label> |
