summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.s_countdown.xml
AgeCommit message (Collapse)Author
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-06-10[IMP] website: clean "countdown" snippet end messageCocographique
Part of #49697 task-2210730
2020-04-27[IMP] website, *: warn user about outdated blocksfja-odoo
* = mass_mailing, web_editor, website_crm, website_event, website_form, website_forum, website_hr_recruitment, website_mail_channel, website_mass_mailing, website_sale, website_slides When an outdated snippet's option are activated we display a warning in the left panel that inform the user about the potential malfunctions. To do so the snippet's template key is added to the snippet as data-snippet. If a snippet is "t-call" inside another snippet, it will need to use t-snippet-call instead of t-call to have the key on himself. Those unique keys are used on snippet selection to retrieve the snippet's version in the left panel and compare it with the currently selected snippet's version. Versions are describe with data-vcss, data-vjs and data-vxml. If a snippet's key is not in the left panel we consider that snippet as outdated. Added some tests to ensure that t-snippet and t-snippet-call really have their template key as data-snippet Adapted the views to the data-snippet changes adding data-snippet="tmpl_key". Part of: https://github.com/odoo/odoo/pull/44569 task-2189669 closes odoo/odoo#50254 X-original-commit: 28a6cd49b6e87b75c2e70771e241c41778bf9e87 Related: odoo/enterprise#10236 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-06[IMP] web_editor, website: add new 'Countdown' snippetRomain Derie
This commit introduces a new snippet: Countdown. The countdown snippet is composed of 4 circle countdown, one for every time unit: seconds, minutes, hours and days. When countdown ends, the user can chose between 3 possible actions: 1. Nothing 2. Show message: show a message once the countdown ends. The message will be displayed bellow the countdown (stopped on 0) or will replace the countdown depending on the option selected. The message can be edited through the website builder. 3. Redirect: redirect the user to the chosen URL. If the user is on the page at the exact moment the countdown reach 0, the user will be redirected automatically. If the user lands on the page after the countdown has reached 0, there will be no redirection and the link will be shown bellow the countdown (stopped on 0) or will replace the countdown depending on the option selected. The countdown layout can be customized in multiple ways: 1. By choosing to hide some time units. For instance, seconds can be hidden or only days shown. 2. By changing its size between small/medium/large. 3. By changing its basic design (circle, boxes, clean). 4. By changing its advanced design (shape, background, progress bar..) task-2093081 closes odoo/odoo#39773 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>