_modal.gamemaster.html.twig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% extends 'modal.html.twig' %}
  2. {% block title %}{{ gamemaster.preferedName }}{% endblock %}
  3. {% block content %}
  4. <article class="media">
  5. <figure class="media-left">
  6. <p class="image is-128x128">
  7. {% if gamemaster.picture %}
  8. <img class="is-rounded" src="/images/gamemasters/{{ gamemaster.picture }}" />
  9. {% else %}
  10. <twig:ux:icon name="bi:person-fill"/>
  11. {% endif %}
  12. </p>
  13. </figure>
  14. <div class="media-content">
  15. <div class="content">
  16. <p>
  17. {{ gamemaster.description }}
  18. </p>
  19. <hr/>
  20. <p>
  21. <em>Je peux animer des parties des jeux suivants : </em><br/>
  22. {{ gamemaster.gamesCanMaster|map(game => game.name)|join(', ') }}
  23. </p>
  24. </div>
  25. </div>
  26. </article>
  27. {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_ADMIN') %}
  28. <div class="box">
  29. <div class="columns">
  30. {% if gamemaster.phone %}
  31. <div class="column has-text-centered">
  32. <a class="button is-primary" href="tel:{{ gamemaster.phone }}"><span class="icon-text"><span class="icon mr-3"><twig:ux:icon name="bi:telephone-fill"/></span>Appeler</a>
  33. </div>
  34. {% endif %}
  35. <div class="column has-text-centered">
  36. <a class="button is-primary" href="tel:{{ gamemaster.phone }}"><span class="icon-text"><span class="icon mr-3"><twig:ux:icon name="bi:envelope-fill"/></span>Mail</a>
  37. </div>
  38. </div>
  39. </div>
  40. {% endif %}
  41. {% endblock %}