|
@@ -9,11 +9,11 @@
|
|
|
<div class="grid is-gap-0">
|
|
|
|
|
|
{# en-tête avec les noms des espaces #}
|
|
|
- <div class="cell planning-cell planning-cell-heading has-background-primary-light">
|
|
|
+ <div class="cell is-coll-start planning-cell planning-cell-heading">
|
|
|
Espaces
|
|
|
</div>
|
|
|
{% for space in event.getSpaces() %}
|
|
|
- <div class="cell planning-cell planning-cell-heading has-background-primary-light">
|
|
|
+ <div class="cell planning-cell planning-cell-heading">
|
|
|
{{ space.name }}
|
|
|
</div>
|
|
|
{% endfor %}
|
|
@@ -26,17 +26,18 @@
|
|
|
|
|
|
{# On affiche tous les slots de la période, space par space #}
|
|
|
{% for dateRef in this.getDateOrdered(period) %}
|
|
|
- <div class="cell planning-cell planning-cell-heading has-background-primary-light">
|
|
|
+ <div class="cell planning-cell planning-cell-heading">
|
|
|
{{ dateRef|date('H:i', app_timezone) }}
|
|
|
</div>
|
|
|
{% for space in event.getSpaces() %}
|
|
|
{# extraction du slot de cet espace, ce moment et cette période #}
|
|
|
- {% set thisSlot = this.getThisSlot(dateRef, space, period) %}
|
|
|
-
|
|
|
+ {# set thisSlot = this.getThisSlot(dateRef, space, period) #}
|
|
|
+ {% set thisSlot = this.getThisSlotInfo(dateRef, space) %}
|
|
|
+
|
|
|
{# si le slot est Indisponible #}
|
|
|
{% if thisSlot.unavailable %}
|
|
|
{% if displayLocked %}
|
|
|
- <div class="cell planning-cell planning-cell-locked" data-id="{{ thisSlot.id }}">
|
|
|
+ <div class="cell planning-cell planning-cell-locked has-text-centered" data-id="{{ thisSlot.id }}">
|
|
|
<div class="icon"><twig:ux:icon name="bi:lock-fill" /></div>
|
|
|
</div>
|
|
|
{% else %}
|
|
@@ -50,27 +51,27 @@
|
|
|
{% if thisSlot == thisSlot.party.slots[0] %}
|
|
|
{# Premier slot d'une partie ou partie non validée #}
|
|
|
<div class="cell planning-cell planning-cell-game-parent">
|
|
|
- <div class="planning-cell-game" style="height: {{ thisSlot.party.slots|length * 4 }}rem !important">
|
|
|
+ <div class="planning-cell-game {% if thisSlot.party.getSeatsLeft < 1 %}planning-cell-game-isfull {% endif %}{% if pathFullSlot %} open-modal" href="{{ path(pathFullSlot, {id: thisSlot.id}) }}"{% else %}"{% endif %} style="height: {{ thisSlot.party.slots|length * 4 * app_hmult }}rem !important">
|
|
|
{# Carte "jeu" DEBUT #}
|
|
|
- <div class="card" style="height: {{ thisSlot.party.slots|length * 4 - 0.7 }}rem !important {% if not thisSlot.party.isValidated %}; filter:grayscale(1) opacity(0.3);{% endif %}">
|
|
|
+ <div class="card" style="height: {{ thisSlot.party.slots|length * 4 * app_hmult - 0.7 }}rem !important {% if not thisSlot.party.isValidated %}; filter:grayscale(1) opacity(0.3);{% endif %}">
|
|
|
|
|
|
<div class="card-header">
|
|
|
<div class="media">
|
|
|
<div class="media-left">
|
|
|
<figure class="image is-48x48">
|
|
|
- {% if pathFullSlot %}<a href="{{ path(pathFullSlot, {id: thisSlot.id}) }}" class="open-modal">{% endif %}
|
|
|
+
|
|
|
{% if thisSlot.party.gamemaster.picture %}
|
|
|
<img class="is-rounded" src="/images/gamemasters/{{ thisSlot.party.gamemaster.picture }}" />
|
|
|
{% else %}
|
|
|
<twig:ux:icon name="bi:person-fill"/>
|
|
|
{% endif %}
|
|
|
- {% if pathFullSlot %}</a>{% endif %}
|
|
|
+
|
|
|
</figure>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="media-content">
|
|
|
<small class="hax-text-grey-light">@{{ thisSlot.party.gamemaster.preferedName }}</small><br/>
|
|
|
- {% if pathFullSlot %}<a href="{{ path(pathFullSlot, {id: thisSlot.id}) }}" class="open-modal">{% endif %}<span class="title is-6">{{ thisSlot.party.game.name }}</span>{% if pathFullSlot %}</a>{% endif %}<br/>
|
|
|
+ <span class="title is-6">{{ thisSlot.party.game.name }}</span>
|
|
|
{% if thisSlot.party.gamemasterIsAuthor %}<br/><span class="tag is-info">animée par l'auteur</span>{% endif %}
|
|
|
</div>
|
|
|
|
|
@@ -79,7 +80,7 @@
|
|
|
<small>Places : {{ thisSlot.party.getSeatsLeft }} / {{ thisSlot.party.getMaxParticipants }}</small>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
+ {% if pathFullSlot %}</a>{% endif %}
|
|
|
</div>
|
|
|
{# Carte "jeu" FIN #}
|
|
|
</div>
|
|
@@ -99,10 +100,14 @@
|
|
|
{% if not thisSlot.unavailable and not thisSlot.party %}
|
|
|
{% if pathEmptySlot %}
|
|
|
<a href="{{ path(pathEmptySlot, {id: thisSlot.id}) }}" class="open-modal">
|
|
|
- <div class="cell planning-cell planning-cell-free" data-id="{{ thisSlot.id }}">
|
|
|
+ <div class="cell planning-cell planning-cell-free has-text-centered" data-id="{{ thisSlot.id }}">
|
|
|
<div class="icon"><twig:ux:icon name="bi:plus-circle" /></div>
|
|
|
</div>
|
|
|
</a>
|
|
|
+ {% elseif displayLocked %}
|
|
|
+ <div class="cell planning-cell planning-cell-free has-text-centered" data-id="{{ thisSlot.id }}">
|
|
|
+ <div class="icon"><twig:ux:icon name="bi:unlock-fill" /></div>
|
|
|
+ </div>
|
|
|
{% else %}
|
|
|
<div class="cell planning-cell planning-cell-free" data-id="{{ thisSlot.id }}">
|
|
|
|