summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_image_gallery
AgeCommit message (Collapse)Author
2021-05-31[FIX] website: remove "add image" button from the normal modeYounn Olivier
The "Add image" button was shown out of the editor mode when removing all images from a snippet. task-2469516 closes odoo/odoo#71424 X-original-commit: c1f4a39071c8f99499a7e1e5214362ac29df8881 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-03-09[IMP] website: make images wall editablexO-Tx
The goal of this commit is to make the Images Wall/Gallery snippet editable to be able to open the media dialog on "double-click" on images. Backport from https://github.com/odoo/odoo/pull/66544 closes odoo/odoo#67547 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-03-05[FIX] website: fix image gallery slider indexYounn Olivier
The gallery slider index was wrongly calculated when the gallery had no active element, as the jquery method .index() will still return -1 when no element is found. task-2472041 closes odoo/odoo#67389 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-02-22[FIX] website: show thumbnails for img gallery in tabs snippetAndrea Grazioso (agr-odoo)
- Go to the website - Drag a "Tabs" block on the page, you will have 3 example tabs - Click on the tab "Contact" and drag in the block "Image Gallery" - Add multiple images to the image gallery - Click on one of the other tabs so that the image gallery is hidden - Save The image gallery do not have the thumbails anymore. This occurs because when the carousel-indicator is hidden, jquery is not able to fetch its real length, so no icons are added. opw-2438513 closes odoo/odoo#66197 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-02-11[FIX] website, web_editor : image gallery miniatures are not updatedYounn Olivier
Description of the task : Make the website ui as consistent as possible by making some layout quick wins. Behaviour before the PR is merged : When changing an image in the image gallery snippet, its miniature is not updated. Desired behaviour after PR is merged : The miniature of an image of the image gallery is updated when the image is changed. The snippet options listens to the 'image_changed' event triggered by the media widget. task-2438556
2020-12-22[FIX] website: gallery cover img inside anchor is not well placednie
Steps: - Go to "Website" > "Go to Website" - Click Edit - Add an image gallery - Add an image to the gallery - Add the same image to the gallery - Click the first image - Click "Image Cover" in the side panel - Click on the Link button in the bottom-right of the side panel - Add a link and save Bug: The first image is not displayed in the same way as the second one. Explanation: The layout is not carried over to `img` when it's nested into an `a` tag. Redefining the layout on the `a` tag fixes the issue. opw:2394953 closes odoo/odoo#63675 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-12-16[FIX] website: gallery img inside anchor is too largenie
Steps: - Go to "Website" > "Go to Website" - Click Edit - Add an image gallery - Add an image to the gallery - Click the image - Click on the Link button in the bottom-right of the side panel - Add a link and save Bug: The image is too large. Explanation: The flex layout is not carried over to `img` when it's nested into an `a` tag. Redefining the flex layout on the `a` tag fixes the issue. This fixes portrait images: ```css height: 100%; width: 100%; ``` And adding this also fixes landscape and smaller images: ```css display: flex; ``` opw:2394953 closes odoo/odoo#63364 Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-10-22[FIX] various: not translate the close icon of notificationsBenoit Socias
Same change in several areas where translations existed: - website editor notification popup - elearning share popup - forum remediation filter popup - event registration attendees popup - portal rating popup - stripe payment error popup And many other locations where there were no translations yet "&times;" has been replaced by its UTF8 character. Also introduced aria-label where missing. Before this commit the close icon was included in translated resources. For example, in Spanish the "&times;" had been turned into "&veces;" thus not rendering an icon anymore After this commit the close icon is not a translated text anymore and remains an icon across all languages https://github.com/odoo/odoo/pull/60186 task-2312878 closes odoo/odoo#60186 Related: odoo/enterprise#14209 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-13[FIX] website: disable overlay on arrows in gallery snippetBenjamin Vray
Before this commit it was possible to activate the overlay of the arrows of the gallery snippet (with themes because of animation options) task-2312878 closes odoo/odoo#59860 X-original-commit: d74b7618c750724c2efe448c57b07c6d6191e375 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-10[FIX] website: image gallery do not open the media dialog if not emptyBenjamin Vray
Do not auto open the media dialog after the drop if there are images in snippets images wall and images gallery. task-2312878
2020-08-18[MOV] website: move JS Qweb templates to snippets directoryLaurent Stukkens (LTU)
* Prior to this commit, Snippets XML Qweb templates files were located under website/static/src/xml/. * After this commit, Snippets XML Qweb templates files will be named AAA.xml (with AAA being the revision number) and located under the related Snippet directory '/website/static/src/snippets/SNIPPET_DIRECTORY/' task-2276740 PR #53175
2020-07-30[FIX] website: prevent flickering on image reorder in the image wallThanh Dodeur
Before this commit, reordering the images in the image wall was causing a flicker of the snippet options. It was caused by a forced deselection of the snippet (image) that is not necessary since 17e7e754cdd9f175f39c066484398a572ee0778d task-2307083 closes odoo/odoo#55090 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-07-17[IMP] website: keep the selected image after moving it in galleryBenjamin Vray
Keep the selected image after moving it in the gallery. So that the options for moving the current image are always displayed. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-07-17[IMP] website: add dots indicators in gallery snippet optionsBenjamin Vray
Add dots indicators in gallery snippet options. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-07-17[IMP] website: split image gallery into 2 different snippetsBenjamin Vray
Snippet image gallery retains only the slideshow mode and a new snippet called 'image wall' takes the 3 other modes. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-07-17[IMP] website: review gallery snippetBenjamin Vray
Review the gallery snippet. It has been improved in multiple ways. Added new options, etc. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-07-17[IMP] website: remove right/left indicators in gallery in editorBenjamin Vray
In gallery snippet with slideshow mode, the right/left indicators have now the same behavior in editor and outside. Before this commit, these indicators were always visible in editable mode. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-05-20[FIX] website: fix lightbox slideshow in gallery snippetBenjamin Vray
Before this commit there was a traceback when rendering the lightbox in the gallery snippet. This bug was introduced by the new media dialog system. Related to task-2162952 closes odoo/odoo#51603 X-original-commit: 791ecf72af4a0928a02bf1bbdc269c67fcc3524c Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-30[IMP] web_editor, *: set image alt automatically, remove useless altsSamuel Degueldre
*: website, web_unplash The html alt attribute is supposed to contain a description of an image's content (an alternative to the visual representation), a lot of snippets contained alt attributes that were not descriptive of their content, and would as such be counter-productive in terms of accessibility. This commit removes those. Previously, the alt attribute on img tags had to be set manually by the user through the editor. This commit makes use of the description field on ir.attachment to store image description, and sets the alt attribute on images to that description when choosing an image from the media dialog. task-2091417 closes odoo/odoo#45174 Related: odoo/enterprise#9520 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-25[FIX] website: fix height and position of carousel indicators controlsBenjamin Vray
In gallery snippet in carousel mode, fix the fact that the height of the controls are bigger that the others squares and fix also the wrong position of the indicators. task-2162952 closes odoo/odoo#48380 X-original-commit: 9752596abfcae6b0bbf79ac675fe9e304a068a21 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-25[FIX] website: fix an issue when changing width option in the galleryBenjamin Vray
As the container class now changes with the width option. We cannot use this class in the js or css files anymore. task-2162952 closes odoo/odoo#48377 X-original-commit: 1cf2ee35c2d85d87b27d5bd72c414e12fcbaf123 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-25[FIX] website: keep images order in gallery snippet with masonry modeBenjamin Vray
Keep the same images order as the other modes in the gallery snippet with masonry mode. Before this commit, the images order was reversed with masonry mode. task-2162952 closes odoo/odoo#44486 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-12[FIX] website: restore hidden indicators in gallery snippetBenjamin Vray
Indicators were hidden in editor when switching to slideshow mode from any other mode. Because the class of the selected mode was defined after rendering and we need this class before the rendering. This also fixes other small issues when switching between different modes. Part of https://github.com/odoo/odoo/pull/44180 task-2162952 closes odoo/odoo#47519 X-original-commit: a99150b11a463901121bbe9751370231e3564ca2 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-12[FIX] website: update links ids in duplicated carousel snippetsBenjamin Vray
(+ gallery snippet in carousel mode) Part of https://github.com/odoo/odoo/pull/44180 task-2162952 X-original-commit: 6237c59d607389cb0ed57694bb23b253f49805c8
2020-02-10[FIX] web_editor, *: unblock editor after any option dialog closingfja-odoo
*: website Some dialog promises were not resolved on close, blocking the editor. closes odoo/odoo#44953 X-original-commit: 20f97470cdc59a817526305806e94b222f26a0f2 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-07[FIX] web_editor, website, *: editor `notify` method must be synchronousqsm-odoo
* website_form Some technical explanations: The method became async because the `setTarget` call which was in there became `async` since it performed an UI update. As this method being async is a problem with some snippets, it is best to keep it synchronous for now. For this, the UI update in `setTarget` is removed and becomes the responsibility of the caller. Nothing relied on it except one code, which is solved by calling `onFocus` before the UI update which occurs on focus, as it is already the case in master. closes odoo/odoo#44850 X-original-commit: 53bba0660237abbcadc9675fd89ec94a2a31e130 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-18[REF] website: move s_image_gallery snippet to dedicated filesqsm-odoo
2019-12-18[REF] move history of xml/css/js to s_image_gallery filesqsm-odoo