gamemaster.html.twig 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 class="is-active"><a>Meneur(euse) de jeu</a></li>
  15. <li><a href="{{ path('app_profile_gamelist')}}">Ludothèque</a></li>
  16. <li><a href="{{ path('app_profile_gameadd') }}">Proposer un jeu</a></li>
  17. {% endif %}
  18. </ul>
  19. </div>
  20. {{ form_errors(form) }}
  21. {{ form_start(form) }}
  22. <div class="columns">
  23. <div class="column">
  24. {{ form_row(form.preferedName) }}
  25. </div>
  26. <div class="column">
  27. {{ form_row(form.slug) }}
  28. </div>
  29. </div>
  30. {{ form_row(form.description)}}
  31. {# gestion de l'illustration #}
  32. <div class="box">
  33. <div class="field">
  34. <div class="columns">
  35. <div class="column">
  36. {{ form_label(form.picture) }}
  37. <div class="file has-name is-fullwidth" id="file-js" {{ stimulus_controller('bulma-filenames') }}>
  38. <label class="file-label" >
  39. {{ form_widget(form.picture) }}
  40. <span class="file-cta">
  41. <span class="file-icon">
  42. <twig:ux:icon name="bi:cloud-upload" />
  43. </span>
  44. <span class="file-label"> Choisissez un fichier… </span>
  45. </span>
  46. <span class="file-name"> aucun fichier </span>
  47. </label>
  48. </div>
  49. {{ form_help(form.picture) }}
  50. {% if gamemaster.picture %}
  51. <div class="field mt-2">
  52. <p><a href="{{ path('app_profile_gamemaster_del_pic', {id: gamemaster.id}) }}" class="button is-danger"><twig:ux:icon name="bi:trash-fill" class="small-icon-in-text"/> Supprimer l'image chargée.</a></p>
  53. </div>
  54. {% endif %}
  55. </div>
  56. <div class="column">
  57. {% if gamemaster.picture %}
  58. <img src="/images/gamemasters/{{ gamemaster.picture }}" class="image is-1by1"/>
  59. {% endif %}
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="box">
  65. <div class="field">
  66. {{ form_label(form.gamesCanMaster) }}
  67. {{ form_widget(form.gamesCanMaster) }}
  68. {{ form_help(form.gamesCanMaster) }}
  69. </div>
  70. </div>
  71. {{ form_widget(form) }}
  72. <div class="control">
  73. <button class="button is-primary" type="submit">Envoyer</button>
  74. </div>
  75. {{ form_end(form) }}
  76. {% endblock %}