summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src/xml/slide_management.xml
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-02-21 09:06:26 +0000
committerThibault Delavallée <tde@odoo.com>2019-02-26 16:07:16 +0000
commit5db9ed0391febb7cabfcd7fadb1971abd2fa0bc4 (patch)
treeedb8d33100b9cf70a6d6f3e44b4c772269a1cd59 /addons/website_slides/static/src/xml/slide_management.xml
parent362271f35ad1a2c0bb15b1069deaa864c5100a3b (diff)
[REF] website_slides: refactor the slide archive modal on frontend
Purpose ======= This commits refactors the slide archiving confirmation modal to make it a standard Dialog (remove global selectors, remove most of useless xml, ...). It also adds a new slide archive route to allow channel publishers to archive slides in sudo mode. Indeed ACLs only website_publishers can write on slide model. In some case people without real rights may update slides. Commit linked to task ID 1942852 and PR #31394.
Diffstat (limited to 'addons/website_slides/static/src/xml/slide_management.xml')
-rw-r--r--addons/website_slides/static/src/xml/slide_management.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/website_slides/static/src/xml/slide_management.xml b/addons/website_slides/static/src/xml/slide_management.xml
new file mode 100644
index 00000000000..118c45970fe
--- /dev/null
+++ b/addons/website_slides/static/src/xml/slide_management.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+ <t t-name="slides.slide.archive">
+ <div>
+ <p>Are you sure you want to archive this slide ?</p>
+ </div>
+ </t>
+</templates>