diff options
| author | jem-odoo <jem@openerp.com> | 2019-02-14 07:59:25 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2019-02-14 09:32:43 +0000 |
| commit | 1878ea95fe229809d04ac8fc9626c3cac2f1f568 (patch) | |
| tree | 02d8093f121ad553968bf7be02cc6c4426800ebf /addons/website_slides/static/src/xml/website_slides_upload.xml | |
| parent | 70606f52850bbcaf4fe0b66423e34a02590e404a (diff) | |
[IMP] website_slides: allow to set cover image for webpage slide
Before this commit, the user can only create a webpage slide
by setting its name, category and tags. On the channel grid,
no tumbnail was shown.
This commit allow the user to upload a cover image from the
slide upload modal and to modify it from form view. the
mimetype of webpage slide is now 'forced' through the
modal to 'text/html' to avoid conflit with 'image/png'
when setting the cover image.
Task-1902304
Diffstat (limited to 'addons/website_slides/static/src/xml/website_slides_upload.xml')
| -rw-r--r-- | addons/website_slides/static/src/xml/website_slides_upload.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides_upload.xml b/addons/website_slides/static/src/xml/website_slides_upload.xml index b427446e28f..966ff3362cd 100644 --- a/addons/website_slides/static/src/xml/website_slides_upload.xml +++ b/addons/website_slides/static/src/xml/website_slides_upload.xml @@ -103,6 +103,26 @@ <div> <form class="clearfix"> <t t-call="website.slide.upload.modal.common"/> + <div class="form-group row"> + <div class="col-md-4"> + <div class="img-thumbnail"> + <div class="o_slide_preview"> + <img src="/website_slides/static/src/img/document.png" id="slide-image" title="Content Preview" alt="Content Preview" class="img-fluid"/> + </div> + </div> + </div> + <div class="col-md-8"> + <ul class="list-group"> + <li class="list-group-item"> + <h5 class="list-group-item-heading"> + <label for="upload" class="col-form-label">Cover Image File</label> + </h5> + <input id="upload" name="file" class="form-control" accept="image/*" type="file" required="required" data-prevent-onchange="1"/> + </li> + </ul> + </div> + </div> + <canvas id="data_canvas" class="d-none"></canvas> </form> </div> </t> |
