summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src
diff options
context:
space:
mode:
authorFlorimond Husquinet (fhu) <fhu@odoo.com>2019-10-16 09:33:18 +0000
committerThibault Delavallée <tde@odoo.com>2019-11-21 12:25:52 +0000
commit07f70e3c1026b4cbe6edcb6e875584c868da3eb1 (patch)
treeb58028d576ce75fbd86768c60d5e15fe788cbc0f /addons/website_slides/static/src
parent27a87141ddec3001f3b9d0e7ba2b52129886c7f4 (diff)
[IMP] website_slide: add a card description independent from short description
The Channel model contains the two following fields: `description` and `description_html`. The former is a short plain-text description that can be filled in the creation form. The latter is a long html-formatted description. Before this commit: The description displayed on the card of the course is the `description` field. After this commit: There is an additional `description_short` field, which is initialized to the same value as the `description` field. If the `description` field is modified the `description_short` reflects the modifications. This happens however only if the user didn't modify the `description_short` field manually. If it is modified to another value manually, the link is broken. Description short is now used only on the course page, below title, in the header. Description short is used in kanban card displayed in homepage. Html description is used as a long course description on course page. Beside, in the creation form of a course, the description textarea is now a one-line input field to reflect the fact that it's supposed to be a relatively short description. Task ID: 2026165 PR #39388 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides/static/src')
-rw-r--r--addons/website_slides/static/src/xml/website_slides_channel.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides_channel.xml b/addons/website_slides/static/src/xml/website_slides_channel.xml
index c040ef438e1..c6c95ebbf2b 100644
--- a/addons/website_slides/static/src/xml/website_slides_channel.xml
+++ b/addons/website_slides/static/src/xml/website_slides_channel.xml
@@ -32,7 +32,7 @@
</fieldset>
<div class="form-group">
<label for="title">Description</label>
- <textarea name="description" id="description" style="height:8em" class="form-control" placeholder="Write here a short description of your first course"/>
+ <input type="text" class="form-control" name="description" id="description" placeholder="Write here a short description of your first course" />
</div>
<div class="form-group">
<label id="communication-label">Review</label>