gamelist.html.twig 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 class="is-active"><a>Ludothèque</a></li>
  16. <li><a href="{{ path('app_profile_gameadd') }}">Proposer un jeu</a></li>
  17. {% endif %}
  18. </ul>
  19. </div>
  20. <div class="block">
  21. <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">
  22. <thead>
  23. <tr>
  24. <th>Nom du jeu</th>
  25. <th>Description</th>
  26. <th>Genres</th>
  27. <th>Dans la ludothèque?</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {% for game in games %}
  32. <tr>
  33. <th>{{ game.name }}</th>
  34. <td>{{ game.description }}</td>
  35. <td>{% for genre in game.genre %}<span class="tag is-info is-light">{{ genre.genre }}</span> {% endfor %}</td>
  36. <td>
  37. {% if game.isInAssoLibrary %}
  38. {% if game.isPhysical %}
  39. Version&nbsp;physique<br/>
  40. {% endif %}
  41. {% if game.isNumerical %}
  42. {% if game.getUrlNumericalVersion %}<a href="{{game.getUrlNumericalVersion}}" target="_blank">Version&nbsp;numérique</a>
  43. {% else %}Version&nbsp;numérique{% endif %}
  44. {% endif %}
  45. {% else %}
  46. Non
  47. {% endif %}
  48. </td>
  49. </tr>
  50. {% endfor %}
  51. </tbody>
  52. </table>
  53. </div>
  54. {% endblock %}