aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-03-28 19:45:59 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-03-28 19:45:59 +0100
commit53fcf8ed3cf59f38adfa4d66e925e147a64f7eef (patch)
tree6c81688e43de8a4746bd981eff2090cf9f6373cb /app/view/templates
parentd97c84ab440b2b68a8068b813638117244864937 (diff)
downloadwcms-53fcf8ed3cf59f38adfa4d66e925e147a64f7eef.tar.gz
wcms-53fcf8ed3cf59f38adfa4d66e925e147a64f7eef.zip
thumbnail
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/editleftbar.php6
-rw-r--r--app/view/templates/edittopbar.php2
2 files changed, 7 insertions, 1 deletions
diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php
index 8da25c3..d510f5d 100644
--- a/app/view/templates/editleftbar.php
+++ b/app/view/templates/editleftbar.php
@@ -43,6 +43,12 @@
?>
</select>
+ <div id="thumbnail">
+ <label for="thumbnail">Thumbnail</label>
+ <input type="file" id="thumbnail" name="thumbnail" accept=".jpg, .JPG, .jpeg, .JPEG">
+ <img src="<?= Model::thumbnailpath() ?><?= $art->id() ?>.jpg" alt="no-thumbnail">
+ </div>
+
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php
index e2e7ed4..1c422b7 100644
--- a/app/view/templates/edittopbar.php
+++ b/app/view/templates/edittopbar.php
@@ -2,7 +2,7 @@
- <form action="<?= $this->uart('artupdate', $art->id()) ?>" method="post" id="update">
+ <form action="<?= $this->uart('artupdate', $art->id()) ?>" method="post" id="update" enctype="multipart/form-data">
<div id="editmenu">