Covivo/mobicoop

View on GitHub
api/templates/communicationAlt/en/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>Hello,</p>
                        <p>{% if context.applicant != null %}<span style="font-weight: bold">{{ context.applicant.givenName }} {{ context.applicant.familyName }}</span>{% endif %}  has just submitted a solidarity request. This person needs to move from<span style="font-weight: bold">{{ context.journey.criteria.fromDate|date('d/m/Y') }}</span>.</p>
                        <p>Click here to consult his request<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>Sincerely,</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>See you soon on <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 %}