| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <data> |
| 4 | <template id="survey_fill_form_done_inherit_website_slides" inherit_id="survey.survey_fill_form_done"> |
| 5 | <xpath expr="//div[hasclass('o_survey_finished')]//a[hasclass('btn-primary')][1]" position="after"> |
| 6 | <t t-if="channel_id"> |
| 7 | <a role="button" class="o_wslides_share me-2 mt-2 mt-md-0 btn btn-secondary btn-lg" href="#" |
| 8 | t-att-data-id="channel_id.id" t-att-data-name="channel_id.name" t-att-data-url="channel_id.website_absolute_url" |
| 9 | data-is-channel="True" t-att-data-email-sharing="bool(channel_id.share_channel_template_id)"> |
| 10 | <i class="fa fa-share-alt" aria-label="Share certification" title="Share certification"/> |
| 11 | Share your certification |
| 12 | </a> |
| 13 | </t> |
| 14 | </xpath> |
| 15 | <xpath expr="//div[hasclass('o_survey_finished')]/div[last()]" position="after"> |
| 16 | <div t-if="channel_id" class="mt16"> |
| 17 | <a role="button" |
| 18 | class="btn btn-primary btn-lg" |
| 19 | t-att-href="channel_id.website_absolute_url"> |
| 20 | Go back to course |
| 21 | </a> |
| 22 | </div> |
| 23 | </xpath> |
| 24 | </template> |
| 25 | |
| 26 | <template id="o_wss_certification_icon"> |
| 27 | <t t-set="icon_url" t-value="icon_url if icon_url else '/website_slides_survey/static/src/img/certification.svg'"/> |
| 28 | <t t-set="icon_classes" t-value="icon_classes if icon_classes else 'o_wss_certification_icon'"/> |
| 29 | <img t-att-class="icon_classes" t-att-src="icon_url" alt="Certification icon"/> |
| 30 | </template> |
| 31 | </data> |
| 32 | </odoo> |