summaryrefslogtreecommitdiff
path: root/addons/website_slides_forum/static/src/xml
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-03-06 11:18:14 +0000
committerThibault Delavallée <tde@odoo.com>2019-03-07 09:42:03 +0000
commitf029bf71d064c147842cf044d24e105f13b894ab (patch)
treea824ae0c804c07b6ea0b6a5b4c0cab48a196a244 /addons/website_slides_forum/static/src/xml
parent47b308d8ae2eff2c744e30ce986a9aa4d2d365a4 (diff)
[IMP] website_slides_forum : allow to create a forum and to comment on course frontend creation
When creating a course via the frontend, the behaviour with forum and comment should be the same than from backend. The website_publisher can decide to create or not a forum linked to this course and decide independantely to allow the review and comment on that course. Commit linked to task ID 1941250 and PR #31584.
Diffstat (limited to 'addons/website_slides_forum/static/src/xml')
-rw-r--r--addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml32
1 files changed, 8 insertions, 24 deletions
diff --git a/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml b/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml
index 03389f2a12d..f00c7e4e0ba 100644
--- a/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml
+++ b/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml
@@ -1,32 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-extend="website.slide.channel.create">
- <t t-jquery=".o_wslide_channel_communication_type" t-operation="replace">
- <fieldset id="channel_create_forum" class="form-group">
- <div class="row">
- <legend class="col-form-label col-sm-2">Communication</legend>
- <div class="col-sm-10">
- <div class="form-check">
- <input class="form-check-input" type="radio" name="communication_type" id="communication_type1" value="nothing" checked="checked"/>
- <label class="form-check-label" for="communication_type1">
- No communication
- </label>
- </div>
- <div class="form-check">
- <input class="form-check-input" type="radio" name="communication_type" id="communication_type2" value="forum"/>
- <label class="form-check-label" for="communication_type2">
- Create a Forum
- </label>
- </div>
- <div class="form-check">
- <input class="form-check-input" type="radio" name="communication_type" id="communication_type3" value="comment"/>
- <label class="form-check-label" for="communication_type3">
- Allow comments
- </label>
- </div>
+ <t t-jquery=".o_wslide_channel_communication_type" t-operation="after">
+ <div class="form-group row">
+ <div class="col-sm-2">Communication</div>
+ <div class="col-sm-10">
+ <div class="form-check">
+ <input class="form-check-input" type="checkbox" id="link_forum" name="link_forum"/>
+ <label class="form-check-label" for="link_forum">Create a Forum</label>
</div>
</div>
- </fieldset>
+ </div>
</t>
</t>
</templates>