gamelist.html.twig 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {% extends 'bulma.html.twig' %}
  2. {% block title %}Mon compte{% endblock %}
  3. {% block content %}
  4. <nav class="breadcrumb has-arrow-separator" aria-label="breadcrumbs">
  5. <ul>
  6. <li><a href="{{ path('app_main') }}">Accueil</a></li>
  7. <li class="is-active"><a href="{{ path('app_profile') }}">Mon compte</a></li>
  8. </ul>
  9. </nav>
  10. <div class="tabs is-boxed">
  11. <ul>
  12. <li ><a href="{{ path('app_profile') }}">Compte utilisateur(rice)</a></li>
  13. {% if app.user.linkToGamemaster %}
  14. <li><a href="{{ path('app_profile_gamemaster') }}">Meneur(euse) de jeu</a></li>
  15. <li><a>Disponibilités MJ</a></li>
  16. <li class="is-active"><a>Ludothèque</a></li>
  17. <li><a href="{{ path('app_profile_gameadd') }}">Proposer un jeu</a></li>
  18. {% endif %}
  19. </ul>
  20. </div>
  21. <div class="block">
  22. <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">
  23. <thead>
  24. <tr>
  25. <th>Nom du jeu</th>
  26. <th>Description</th>
  27. <th>Genres</th>
  28. <th>Dans la ludothèque?</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {% for game in games %}
  33. <tr>
  34. <th>{{ game.name }}</th>
  35. <td>{{ game.description }}</td>
  36. <td>{% for genre in game.genre %}<span class="tag is-info is-light">{{ genre.genre }}</span> {% endfor %}</td>
  37. <td>
  38. {% if game.isInAssoLibrary %}
  39. {% if game.isPhysical %}
  40. Version&nbsp;physique<br/>
  41. {% endif %}
  42. {% if game.isNumerical %}
  43. {% if game.getUrlNumericalVersion %}<a href="{{game.getUrlNumericalVersion}}" target="_blank">Version&nbsp;numérique</a>
  44. {% else %}Version&nbsp;numérique{% endif %}
  45. {% endif %}
  46. {% else %}
  47. Non
  48. {% endif %}
  49. </td>
  50. </tr>
  51. {% endfor %}
  52. </tbody>
  53. </table>
  54. </div>
  55. {% endblock %}