{# # This file is part of MedShakeEHR. # # Copyright (c) 2017 # Bertrand Boutillier # http://www.medshake.net # # MedShakeEHR is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # MedShakeEHR is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with MedShakeEHR. If not, see . #/ /## # Template > inbox : inbox # # @author Bertrand Boutillier # @contrib fr33z00 #} {% extends "page.html.twig" %} {% import "macroForm.html.twig" as f %} {% block title %}{{ config.designAppName }} : inbox{% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block body %}

Boite de réception

{% if page.inbox.mails is empty %}
La boite de réception est vide.
{% else %} {% set trans_mois = { "01": "janvier", "02": "février", "03": "mars", "04": "avril", "05": "mai", "06": "juin", "07": "juillet", "08": "août", "09": "septembre", "10": "octobre", "11": "novembre", "12": "décembre" } %}
{% for k, mails in page.inbox.mails %} {% set parentLoop = loop.index %} {% for mail in mails %} {% if mail.isValidHprim %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ k|date('j') }}{% if k|date('j') == 1 %}er{% endif %} {{ trans_mois[k|date('m')] }} {{ k|date('Y') }} {% if loop.index == 1 %} {% if page.sort == 'asc' %} {% else %} {% endif %} {% endif %}
{{ mail.hprimIdentite|e }} {{ mail.hprimExpediteur|e }} - message sans données HPRIM - {% if mail.pjNombre > 0 %} {{ mail.pjNombre }} {% endif %}
{% endif %} {% endblock %}