<?xml version="1.0"?>
<t name="Survey: retake button" t-name="survey.survey_button_retake">
        <div>
            <t t-if="not answer.scoring_success and not answer.is_session_answer">
                <t t-if="survey.is_attempts_limited">
                    <t t-set="attempts_left" t-value="survey._get_number_of_attempts_lefts(answer.partner_id, answer.email, answer.invite_token)"/>
                    <t t-if="attempts_left &gt; 0">
                        <p><span>Number of attempts left</span>: <span t-esc="attempts_left"/></p>
                        <p><a role="button" class="btn btn-primary btn-lg" t-att-href="'/survey/retry/%s/%s' % (survey.access_token, answer.access_token)">
                        Retry</a></p>
                    </t>
                </t>
                <t t-else="">
                    <p><a role="button" class="btn btn-primary btn-lg" t-att-href="'/survey/retry/%s/%s' % (survey.access_token, answer.access_token)">
                        Take Again</a></p>
                </t>
            </t>
        </div>
    </t>

    