diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-03-08 09:19:43 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-03-08 11:15:07 +0000 |
| commit | 7afd23e56c6cfe6d1f5b5bbcb08911f79cccd9ff (patch) | |
| tree | ea3cb1527a34d605c89ab8b19929f32113207c1c /addons/website_slides_survey/views | |
| parent | 523c1276a13bc63c79e499286d3883ee3cbd953d (diff) | |
[FIX] website_slides: various fixes
Display
* improve color of trophy displayed on top of course main page (success if
course done, warning while working on it);
* correctly fetch and display karma/xp points on course lesson list. It is
either gain of next try, either awarded points depending on slide
completion;
* fix control buttons in course main page (prev, next, set done,
set completed, fullscren), notably correctly set them disabled;
Linting / Code
* put demo in no update;
* rename some parameter in website_slides_survey to avoid conflict between
quiz (on a slide) and certification (a survey);
Commit linked to task ID 1941250 and PR #31697.
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides_survey/views')
| -rw-r--r-- | addons/website_slides_survey/views/website_slides_templates_lesson.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_slides_survey/views/website_slides_templates_lesson.xml b/addons/website_slides_survey/views/website_slides_templates_lesson.xml index 8d6a4d1f123..c6233535bed 100644 --- a/addons/website_slides_survey/views/website_slides_templates_lesson.xml +++ b/addons/website_slides_survey/views/website_slides_templates_lesson.xml @@ -3,9 +3,9 @@ <data> <template id="slide_content_detailed" inherit_id="website_slides.slide_content_detailed"> <xpath expr="//div[hasclass('o_wslides_lesson_content_type')]" position="inside"> - <t t-if="not test_entry" t-set="begin_certification_label" t-value="'Begin certification'" /> - <t t-if="test_entry" t-set="begin_certification_label" t-value="'Test certification'" /> - <div t-if="slide.slide_type == 'certification' and not quizz_passed" class="mb8"> + <t t-if="not certification_test_entry" t-set="begin_certification_label" t-value="'Begin certification'" /> + <t t-if="certification_test_entry" t-set="begin_certification_label" t-value="'Test certification'" /> + <div t-if="slide.slide_type == 'certification' and not certification_done" class="col mt32 mb8 d-flex justify-content-center"> <a role="button" class="btn btn-primary btn-lg" t-att-href="certification_url"> @@ -13,7 +13,7 @@ <t t-esc="begin_certification_label" /> </a> </div> - <div t-if="slide.slide_type == 'certification' and quizz_passed" class="mb8"> + <div t-if="slide.slide_type == 'certification' and certification_done" class="col mt32 mb8 d-flex justify-content-center"> <a role="button" t-att-data-survey_id="survey_id" class="btn btn-primary btn-lg o_wslides_survey_download_certification" |
