diff options
| author | David Beguin <dbe@odoo.com> | 2019-03-06 15:33:17 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-03-08 11:15:07 +0000 |
| commit | f38a81f9812b99b7fb95e2b0eca7b1252401972f (patch) | |
| tree | 8b1693fa9e6e7bec9b09f57e0864e0910fae7765 /addons/website_slides_survey/static | |
| parent | 6091062e66ff2598260fe0a0c1ed7b4141f7ce76 (diff) | |
[IMP] website_slide_survey : set slide completed when quizz_passed
This commit sets the completed flag to True for a slide of type certification
when this certification is succeeded (quizz_passed set to True).
Also, the Download certification button has been added to the fullscreen mode
if the certification is passed by the user.
Task ID : 1941250
PR #31697
Diffstat (limited to 'addons/website_slides_survey/static')
| -rw-r--r-- | addons/website_slides_survey/static/src/xml/website_slides_fullscreen.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/website_slides_survey/static/src/xml/website_slides_fullscreen.xml b/addons/website_slides_survey/static/src/xml/website_slides_fullscreen.xml index 97f35fc3a32..c5d22bfc46f 100644 --- a/addons/website_slides_survey/static/src/xml/website_slides_fullscreen.xml +++ b/addons/website_slides_survey/static/src/xml/website_slides_fullscreen.xml @@ -2,9 +2,14 @@ <templates> <t t-extend="website.slides.fullscreen"> <t t-jquery=".o_wslides_fs_content" t-operation="append"> - <div class="o_wslides_fs_certification" t-if="slide.slide_type == 'certification'"> + <div class="o_wslides_fs_certification" t-if="slide.slide_type == 'certification' && !slide.certificationDone"> <a class="btn btn-primary" t-att-href="'/slides/slide/' + slide.slug" target="new"><i class="fa fa-trophy"/> Pass Certification</a> </div> + <div class="o_wslides_fs_certification" t-if="slide.slide_type == 'certification' && slide.certificationDone"> + <a role="button" t-att-data-survey_id="slide.certificationId" class="btn btn-primary o_wslides_survey_download_certification" href="#"> + <i class="fa fa-fw fa-trophy" role="img" aria-label="Download certification" title="Download certification"/> Download certification + </a> + </div> </t> </t> |
