Covivo/mobicoop

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

Summary

Maintainability
Test Coverage
{% extends 'communicationAlt/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 style="font-size:13px;">Bonjour,</p>
                        <p style="font-size:13px;">{% 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 style="font-size:13px;">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 style="font-size:13px;">Cordialement,</p>
                        <p style="font-size:13px; font-weight: bold">{{ context.structure.name }}</p>
                        {% if context.structure.signature != null %}
                            <p style="font-size:13px;">{{ context.structure.signature }}</p>
                        {% endif %}
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table  style="width:100%;">
                <tr style="text-align:left">
                    <td>
                        <p style="font-size:13px;">A bientôt sur <a style="color:{{api_env('EMAILS_COLOR_PRIMARY')}}" href="{{api_env('EMAILS_PLATFORM_URL')}}">{{api_env('EMAILS_PLATFORM_NAME')}}</a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
{% endblock %}