Covivo/mobicoop

View on GitHub
api/templates/communication/fr/email/notification/solidary_create.html.twig

Summary

Maintainability
Test Coverage
{% extends 'communication/fr/email/notification/base.html.twig' %}
{% block body %}
    <table style="width:100%;font-family:{{api_env('EMAILS_FONT')}}, sans-serif;">
        <tr>
            <td>
                <table style="width:100%;">
                    <tr>
                        <td style="width:70%">
                            {% if context.structure.logo != null %}
                                <img src="{{ api_env('STRUCTURE_LOGO_URI') }}{{ context.structure.logo.filename }}" alt="Logo {{ context.structure.name }}"/>
                            {% endif %}
                            <p>Bonjour,</p>
                            <p>
                                {% if context.applicant != null %}
                                    <span style="font-weight: bold">{{ context.applicant.givenName }}
                                        {{ context.applicant.familyName }}</span>
                                {% endif %}
                                vient de déposer une demande solidaire. Cette personne a besoin de se déplacer dès le
                                <span style="font-weight: bold">{{ context.journey.criteria.fromDate|date('d/m/Y') }}</span>.</p>
                            <p>Cliquez ici pour consulter sa demande
                                <a style="color:{{api_env('EMAILS_COLOR_PRIMARY')}}; font-weight: bold;" href="{{api_env('URL_ADMIN')}}{{ context.adminUrl }}">{{api_env('URL_ADMIN')}}{{ context.adminUrl }}</a>.</p>
                            <p>Cordialement,</p>
                            <p style="font-weight: bold">{{ context.structure.name }}</p>
                            {% if context.structure.signature != null %}
                                <p>{{ context.structure.signature }}</p>
                            {% endif %}
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width:100%;">
                    <tr style="text-align:left">
                        <td>
                            <p>A bientôt sur
                                <a style="color:{{api_env('EMAILS_COLOR_PRIMARY')}}; font-weight: bold;" href="{{api_env('EMAILS_PLATFORM_URL')}}">{{api_env('EMAILS_PLATFORM_NAME')}}</a>
                            </p>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
{% endblock %}