{% extends 'base.html.twig' %} {% block title %}Mon espace{% endblock %} {% block body %}

Mes expertises

{% if myExpertises is not empty %} {% set lvlc = {'initie': '#dce4f5', 'avance': '#fff8e1', 'expert': '#e8f5e9'} %} {% for ae in myExpertises %} {% endfor %}
Expertise Niveau Actions
{{ ae.expertise.label }} {{ ae.levelLabel }}
{% else %}

Vous n'avez pas encore renseigné d'expertise.

{% endif %} {% if catalog is not empty %}
{% else %}

Aucune expertise disponible dans le catalogue. Contactez un administrateur.

{% endif %}
{% if helpRequests is not empty %}

Demandes d'entraide reçues

{% for req in helpRequests %} {% set colors = { 'accepted': {bg: '#e8f5e9', color: '#2e7d32'}, 'refused': {bg: '#fce4e4', color: '#c0392b'}, 'pending': {bg: '#fff8e1', color: '#b45309'} } %} {% set c = colors[req.status] ?? colors.pending %} {% endfor %}
Campagne Site Date prévue Reçue le Statut Actions
{{ req.campaign.displayName }} {{ req.campaign.site ? req.campaign.site.name ~ ' — ' ~ req.campaign.site.city : '—' }} {{ req.campaign.scheduledAt ? req.campaign.scheduledAt|date('d/m/Y H:i') : '—' }} {{ req.createdAt|date('d/m/Y') }} {{ req.statusLabel }} {% if req.isPending %}
{% else %} Répondu le {{ req.respondedAt ? req.respondedAt|date('d/m/Y') : '' }} {% endif %}
{% else %}

Aucune demande d'entraide reçue pour le moment.

{% endif %} {% endblock %}