{% extends 'layout/app.html.twig' %} {% block title %}{{ 'home.sourcer.title'|trans }} - {{ 'app.portal'|trans }}{% endblock %} {% block breadcrumb %}{{ 'home.sourcer.title'|trans }}{% endblock %} {% block app_content %}

{{ 'home.sourcer.title'|trans }}

{{ 'home.sourcer.intro'|trans }}

{% if requests is empty %}
{{ 'home.sourcer.empty'|trans }}
{% else %}
{% for item in requests %} {% set photo = item.mainPhoto %} {# Date où la demande a été adressée à CE sourceur — pas celle de l'import, qui est interne. #} {% set assignment = item.activeAssignmentFor(sourcer) %}
{% if photo %} {{ 'photos.alt_main'|trans({'%name%': item.title}, 'sourcing_sheet') }} {% else %} {{ 'photos.none'|trans({}, 'sourcing_sheet') }} {% endif %}

{{ 'request.reference'|trans }} {{ item.externalReference }}

{{ item.title }}

{% if item.need %}

{{ item.need }}

{% endif %}
{% if assignment and assignment.proposal %} {% include 'proposal/_state.html.twig' with { state: assignment.proposal.state, audience: 'sourcer' } only %} {% else %} {{ 'proposal.state.none'|trans }} {% endif %} {% if assignment %}{{ 'request.received'|trans({'%date%': assignment.assignedAt|date('date_format'|trans({}, 'sourcing_sheet'))}) }}{% endif %}
{% endfor %}
{% endif %} {% if archived is not empty %}

{{ 'proposal.archived'|trans }}

{{ 'proposal.archived_intro'|trans }}

{% endif %} {% endblock %}