| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template id="event_track_content" |
| 5 |
name="Track: Main Description: add quiz" |
| 6 |
inherit_id="website_event_track.event_track_content"> |
| 7 |
<xpath expr="//div[hasclass('o_wesession_track_main_description')]" position="after"> |
| 8 |
<div id="we_track_quiz_container" t-if="track.quiz_id" |
| 9 |
t-att-class="'o_quiz_js_quiz_container o_quiz_main border-top col-12 p-3 %s' % ('' if track.is_quiz_completed else 'd-none')" |
| 10 |
t-att-data-object-id="track.id"> |
| 11 |
<h3 class="col-12">Quiz</h3> |
| 12 |
<t t-call="website_event_track_quiz.quiz_content"> |
| 13 |
<t t-set="track" t-value="track"/> |
| 14 |
<t t-set="quiz_completed" t-value="track.is_quiz_completed"/> |
| 15 |
<t t-set="quiz_points" t-value="track.quiz_points"/> |
| 16 |
</t> |
| 17 |
</div> |
| 18 |
</xpath> |
| 19 |
<xpath expr="//div[hasclass('o_we_track_reminder_button')]" position="before"> |
| 20 |
<div class="o_we_track_quiz_button me-2 my-1" t-if="track.quiz_id and not track.is_quiz_completed and not track.is_track_upcoming"> |
| 21 |
<a class="btn btn-primary" href="#we_track_quiz_container" onclick="$('.o_quiz_js_quiz_container').removeClass('d-none'); "> |
| 22 |
Take the Quiz |
| 23 |
</a> |
| 24 |
</div> |
| 25 |
</xpath> |
| 26 |
</template> |
| 27 |
|
| 28 |
</odoo> |