<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 Tecnativa - Jairo Llopis
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
    <template id="form" name="Consent response processed">
        <!-- Use web.login_layout because it gets automatically wrapped
             by website layout if website is installed, and otherwise includes
             all possibly needed assets -->
        <t t-call="web.login_layout">
            <t t-set="login_card_classes" t-value="'o_consent_form'" />
            <div class="container readable">
                <div class="jumbotron">
                    <h1>Thank you!</h1>
                    <p>
                        Hello, <b t-esc="consent.partner_id.display_name" />
                    </p>
                    <p>
                        We asked you to authorize us to process your data in this data processing activity:
                        <b t-esc="consent.activity_id.display_name" />
                    </p>
                    <div t-field="consent.activity_id.description" />
                    <p t-if="consent.accepted">
                        You have <b class="text-success">accepted</b> such processing.
                    </p>
                    <p t-else="">
                        You have <b class="text-danger">rejected</b> such processing.
                    </p>
                    <p>
                        We have recorded this action on your side.
                    </p>
                    <p>
                        If it was a mistake, you can undo it here:
                        <div class="text-center">
                            <a
                                t-if="consent.accepted"
                                t-att-href="consent._url(False)"
                                class="btn btn-danger btn-lg"
                            >
                                I <b>reject</b> this processing of my data
                            </a>
                            <a
                                t-else=""
                                t-att-href="consent._url(True)"
                                class="btn btn-success btn-lg"
                            >
                                I <b>accept</b> this processing of my data
                            </a>
                        </div>
                    </p>
                    <p>
                        Thanks for your response.
                    </p>
                    <p class="text-muted">
                        Sincerely,<br />
                        <i t-out="controller_name_html" />
                    </p>
                </div>
            </div>
        </t>
    </template>
</data>
