survey_disc_test/views/survey_templates.xml
2026-04-20 16:44:36 +07:00

24 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="survey_fill_form_done_inherit_disc" inherit_id="survey.survey_fill_form_done">
<xpath expr="//div[hasclass('o_survey_finished')]" position="inside">
<t t-if="survey.title == 'DISC Personality Test'">
<div class="mt-4 p-4 bg-light border rounded text-center">
<h3 class="text-primary">Your DISC Profile</h3>
<h2 class="display-4 font-weight-bold" t-esc="answer.disc_profile"/>
<p class="lead mt-3">Thank you for completing the assessment!</p>
</div>
<!-- Hide the default scoring -->
<style>
.o_survey_finished div:has(> h1:contains("You scored")),
.o_survey_finished div:has(> h1:contains("Congratulations")),
.o_survey_finished .text-danger,
.o_survey_finished .text-success {
display: none !important;
}
</style>
</t>
</xpath>
</template>
</odoo>