templates/api/blocks/groupe-travail-preview-content.html.twig line 1

  1. {% set img = articleContent.header_img %}
  2. {% set limit_date = articleContent.limit_date %}
  3. {% set referent = articleContent.referent_pqna %}
  4. {% set participants = articleContent.participants %}
  5. {% set title = articleContent.group_title %}
  6. <div class="preview-header">
  7. {% if img is defined and img is not empty %}
  8. {% include "blocks/previews/img/image.html.twig" %}
  9. {% else %}
  10. {% include "blocks/previews/img/default-image.html.twig" %}
  11. {% endif %}
  12. <div class="background-color-turquoize"></div>
  13. </div>
  14. <div class="preview-content dflex fdc w100">
  15. {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  16. <a href="{{ sulu_content_path(routePath) }}" class="cblack nodeco mt-12px">
  17. <div class="fw500 fs20 preview-h3 lh28">{{ title }}</div>
  18. </a>
  19. <div class="dflex fwwrap fdc h100">
  20. <div class="mb-4px">
  21. {% if limit_date %}
  22. <div class="timeanddate dflex mt-8px">
  23. <img src="/resources/img/aapami/calendar-icon.svg" alt="" width="16" height="16">
  24. <div class="time dflex fdc lh24">
  25. <div class="fw600">Dates limites d'inscription :</div>
  26. {{ limit_date }}
  27. </div>
  28. </div>
  29. {% endif %}
  30. <div class="enterprise dflex aife mt-4px">
  31. <img src="/resources/img/user-offre-icon.svg" alt="" width="17" height="19">
  32. Nombre de participants : {{ participants|length }}
  33. </div>
  34. {% set step = 0 %}
  35. {% if articleContent.jalons|length > 0 %}
  36. {% for i, jalon in articleContent.jalons %}
  37. {% if jalon.jalon_main %}
  38. {% set step = i + 1 %}
  39. {% endif %}
  40. {% endfor %}
  41. {% endif %}
  42. {% if articleContent.jalons is defined and articleContent.jalons is not empty %}
  43. <div class="type-appel dflex aife mt-20px">
  44. <img src="/resources/img/validated-icon.svg" alt="" width="15" height="14">
  45. Étapes de travail : {{ step }} sur {{ articleContent.jalons|length }}
  46. </div>
  47. {% endif %}
  48. </div>
  49. {% if referent is defined and referent is not empty %}
  50. {% set initials = referent.fullName|split(' ') %}
  51. <span class="diflex initials gt cwhite jcc aic fs12 mta" title="{{ referent.fullName }}">{{ initials[0]|first|upper }}{{ initials[1]|first|upper }}</span>
  52. {% endif %}
  53. </div>
  54. </div>