Browse Source

correctif dropdown vide et accès gestonnaire sur page d'accueil, noms MJ au survol

garthh 4 weeks ago
parent
commit
e24069129a

+ 3 - 3
templates/main/booking.html.twig

@@ -70,9 +70,9 @@
       <p class="is-inline-block icon-text">{{ event.getGamemastersAssigned|length }} meneur(euse)s de jeu
         {% for gamemaster in event.getGamemastersAssigned %}
           <span class="icon">
-              <a href="{{ path('app_gamemaster_public_profile', {id: gamemaster.id}) }}" class="open-modal"><figure class="image is-24x24 is-inline-block">
+              <a href="{{ path('app_gamemaster_public_profile', {id: gamemaster.id}) }}" class="open-modal" title="{{ gamemaster.preferedName }}"><figure class="image is-24x24 is-inline-block">
               {% if gamemaster.picture %}
-              <img class="is-rounded" src="/images/gamemasters/{{ gamemaster.picture }}" />
+              <img class="is-rounded" src="/images/gamemasters/{{ gamemaster.picture }}"  alt="{{ gamemaster.preferedName }}"/>
               {% else %}
               <twig:ux:icon name="bi:person-fill"/>
               {% endif %}
@@ -81,7 +81,7 @@
         {% endfor %}
       </p>
     </div>
-    {% if event.isEveryoneCanAskForGame %}
+    {% if event.isEveryoneCanAskForGame and is_granted('ROLE_USER') %}
     <div class="column">
       <a href="#" class="button is-primary open-modal">Demander une partie</a>
     </div>

+ 1 - 1
templates/main/index.html.twig

@@ -38,7 +38,7 @@
               <div class="card-footer">
                 <a class="card-footer-item" href="{{ path('app_main_booking', {id: event.id}) }}">Réserver une place</a>
                 {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_ADMIN') %}
-                <a class="card-footer-item" href="#">Gérer</a>
+                <a class="card-footer-item" href="{{ path('app_manage', {id: event.id}) }}">Gérer</a>
                 {% endif %} 
               </div>
             </div>

+ 4 - 2
templates/manage/manage.html.twig

@@ -13,6 +13,7 @@
       <button>
         <span><strong>{{ event.name }} - du {{ event.startOn|date('d/m/y à H:i', app_timezone) }} au {{ event.endOn|date('d/m/y à H:i', app_timezone)}}</strong></span>        
       </button>
+      {% if events|length > 1 %}
       <span class="icon is-small">
         <twig:ux:icon name="bi:chevron-down" />&nbsp;
       </span>
@@ -25,6 +26,7 @@
           {% endfor %}
         </div>
       </div>
+      {% endif %}
     </div>
   </div>
 
@@ -45,9 +47,9 @@
       <p class="is-inline-block icon-text">{{ event.getGamemastersAssigned|length }} meneur(euse)s de jeu
         {% for gamemaster in event.getGamemastersAssigned %}
           <span class="icon">
-              <a href="{{ path('app_gamemaster_public_profile', {id: gamemaster.id}) }}" class="open-modal"><figure class="image is-24x24 is-inline-block">
+              <a href="{{ path('app_gamemaster_public_profile', {id: gamemaster.id}) }}" class="open-modal" title="{{ gamemaster.preferedName }}"><figure class="image is-24x24 is-inline-block">
               {% if gamemaster.picture %}
-              <img class="is-rounded" src="/images/gamemasters/{{ gamemaster.picture }}" />
+              <img class="is-rounded" src="/images/gamemasters/{{ gamemaster.picture }}" alt="{{ gamemaster.preferedName }}"/>
               {% else %}
               <twig:ux:icon name="bi:person-fill"/>
               {% endif %}