<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">
        <record id="mail_template_applicant_interview_invite" model="mail.template">
            <field name="name">Applicant: Interview</field>
            <field name="model_id" ref="model_survey_user_input" />
            <field name="subject">Participate to {{ object.survey_id.display_name }} interview</field>
            <field name="email_to" eval="False"/>
            <field name="use_default_to" eval="True"/>
            <field name="body_html" type="html">
<div style="margin: 0px; padding: 0px; font-size: 13px;">
    <p style="margin: 0px; padding: 0px; font-size: 13px;">
        Dear <t t-out="object.partner_id.name or 'applicant'">[applicant name]</t><br/><br/>
        <t>
            You've progressed through the recruitment process and we would like you to answer some questions.
        </t>
        <div style="margin: 16px 0px 16px 0px;">
            <a t-att-href="(object.get_start_url())"
                t-attf-style="background-color: {{user.company_id.email_secondary_color or '#875A7B'}}; padding: 8px 16px 8px 16px; text-decoration: none; color: {{user.company_id.email_primary_color or '#FFFFFF'}}; border-radius: 5px; font-size:13px;">
                <t>
                    Start the written interview
                </t>
            </a>
        </div>
        <t t-if="object.deadline">
            Please answer the interview for <t t-out="format_date(object.deadline)">[deadline date]</t>.<br/><br/>
        </t>
        <t>
            We wish you good luck! Thank you in advance for your participation.
        </t>
    </p>
</div>
            </field>
            <field name="auto_delete" eval="True"/>
        </record>
    </data>
</odoo>
