diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-02-06 12:31:23 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-02-07 13:44:39 +0000 |
| commit | ddccd33bae51499cb1872ebef75760e75d50a5f9 (patch) | |
| tree | 3e0b97099a1cb167c320af7116ddd508041f8397 /addons/website_slides/static/src/xml | |
| parent | b91add891c214c52559e0447c43207ea50bb06cb (diff) | |
[IMP] website_slides: improve upload slide screen
Slide upload access is a bit cleaned. A can_publish field is added controlling
who can publish slides. Currently website publishers are allowed to publish
content. Not publishers people allowed to upload cannot publish their own
content. It stays in a submitted non published state.
This commit is linked to task ID 1937411 and PR #30847.
Diffstat (limited to 'addons/website_slides/static/src/xml')
| -rw-r--r-- | addons/website_slides/static/src/xml/website_slides.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides.xml b/addons/website_slides/static/src/xml/website_slides.xml index 5d9f8366a0c..4283291b956 100644 --- a/addons/website_slides/static/src/xml/website_slides.xml +++ b/addons/website_slides/static/src/xml/website_slides.xml @@ -67,8 +67,9 @@ </main> <footer class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Discard</button> - <button type="button" data-loading-text="Loading..." class="btn btn-primary save">Save as Draft</button> - <button type="button" data-loading-text="Loading..." data-published="true" class="btn btn-primary save">Save and Publish</button> + <button type="button" data-loading-text="Loading..." t-if="widget.canUpload && widget.canPublish" class="btn btn-primary save">Save as Draft</button> + <button type="button" data-loading-text="Loading..." t-if="widget.canUpload && ! widget.canPublish" class="btn btn-primary save">Submit</button> + <button type="button" data-loading-text="Loading..." t-if="widget.canUpload && widget.canPublish" data-published="true" class="btn btn-primary save">Publish</button> </footer> </div> </div> |
