booking.info.html.twig 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {% extends 'bulma.html.twig' %}
  2. {% block title %}Réservations pour {{ event.name }}{% endblock %}
  3. {% block content %}
  4. {{ component('Modal')}}
  5. <div class="columns">
  6. <div class="column is-one-third">
  7. <div class="card event-selector" {{ stimulus_controller('dropdown')}} >
  8. <div class="card-image">
  9. <figure class="image is-3by1">
  10. {% if event.picture %}
  11. <img src="/images/events/{{ event.picture }}" />
  12. {% else %}
  13. <img src="/images/events/placeholder.webp" />
  14. {% endif %}
  15. </figure>
  16. </div>
  17. <div class="card-footer">
  18. <div class="dropdown card-footer-item is-flex is-justify-content-space-between is-align-items-center" data-action="click->dropdown#toggle">
  19. <button>
  20. <span><strong>{{ event.name }}</strong></span>
  21. </button>
  22. {% if events|length > 1 %}
  23. <span class="icon is-small">
  24. <twig:ux:icon name="bi:chevron-down" />&nbsp;
  25. </span>
  26. <div data-dropdown-target="menu" class="dropdown-menu">
  27. <div class="dropdown-content">
  28. {% for evt in events %}
  29. {% if event.id != evt.id %}
  30. <a href="{{ path('app_main_booking', {id: evt.id, view: 'pictures'})}}" class="dropdown-item"><strong>{{ evt.name }}</strong><small> du {{ evt.startOn|date('d/m/y H:i', app_timezone) }} au {{ evt.endOn|date('d/m/y H:i', app_timezone)}}</small></a>
  31. {% endif %}
  32. {% endfor %}
  33. </div>
  34. </div>
  35. {% endif %}
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="column">
  41. <div class="hero is-small">
  42. <div class="hero-body">
  43. <h2 class="title is-2">{{ event.name }}{% if event.moreLink %}<a href="{{ event.moreLink }}" target="_blank" title="En savoir plus sur le site de l'événement.">&nbsp;<small class="icon is-6"><twig:ux:icon name="bi:link-45deg"/></small></a>{% endif %}<a href="{{ app_url|replace({'https://':'webcal://'}) }}{{ path('app_main_ics', {id: event.id}) }}" target="_blank" title="Ajouter à mon agenda">&nbsp;<small class="icon is-6"><twig:ux:icon name="bi:calendar-plus"/></small></a></h2>
  44. <p class="subtitle is-4">du {{ event.startOn|date('d/m/y à H:i', app_timezone) }} au {{ event.endOn|date('d/m/y à H:i', app_timezone)}}</p>
  45. <article>
  46. <p>{{ event.description }}</p>
  47. </article>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. {% if event.isEveryoneCanAskForGame %}
  53. <div class="block is-clearfix">
  54. <div class="message is-info">
  55. <div class="message-body">
  56. <p class="block">Cet événement vous propose de demander votre parties ! Choissez un jeu, choissez un(e) meneur(euse) de jeu et nous planifierons, si possible votre partie.</p>
  57. {% if is_granted('ROLE_USER') %}
  58. <p class="block"><a href="{{ path('app_party_request', {id: event.id}) }}" class="button is-info open-modal">Demander une partie</a></p>
  59. {% else %}
  60. <p>Vous devez disposer d'un compte utilisateur pour réaliser une demande. <a href="{{ app_url }}login">Connectez-vous ou créez un compte.</a></p>
  61. {% endif %}
  62. </div>
  63. </div>
  64. </div>
  65. {% endif %}
  66. {% if not event.isHiddenPlanning or is_granted('ROLE_MANAGER') or is_granted('ROLE_ADMIN') %}
  67. <div class="tabs is-boxed">
  68. <ul>
  69. <li class="is-active"><a>Informations</a></li>
  70. <li><a href="{{ path('app_main_booking', {id: event.id, view: 'pictures'}) }}">Vignettes</a></li>
  71. <li><a href="{{ path('app_main_booking', {id: event.id, view: 'planning'}) }}">Planning</a></li>
  72. </ul>
  73. </div>
  74. {% endif %}
  75. <section class="container">
  76. </section>
  77. {% endblock %}