edit.html.twig 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {% extends 'bulma.html.twig' %}
  2. {% block title %}Administration > Meneur(euse) de jeux > Éditer{% endblock %}
  3. {% block content %}
  4. {{ form_errors(form) }}
  5. {{ form_start(form) }}
  6. {{ form_row(form.firstName) }}
  7. {{ form_row(form.lastName) }}
  8. {{ form_row(form.preferedName) }}
  9. {{ form_row(form.slug) }}
  10. {{ form_row(form.description)}}
  11. <div class="box">
  12. {{ form_row(form.email) }}
  13. {{ form_row(form.phone) }}
  14. </div>
  15. {# gestion de l'illustration #}
  16. <div class="box">
  17. <div class="field">
  18. <div class="columns">
  19. <div class="column">
  20. {{ form_label(form.picture) }}
  21. <div class="file has-name is-fullwidth" id="file-js" {{ stimulus_controller('bulma-filenames') }}>
  22. <label class="file-label" >
  23. {{ form_widget(form.picture) }}
  24. <span class="file-cta">
  25. <span class="file-icon">
  26. <twig:ux:icon name="bi:cloud-upload" />
  27. </span>
  28. <span class="file-label"> Choisissez un fichier… </span>
  29. </span>
  30. <span class="file-name"> aucun fichier </span>
  31. </label>
  32. </div>
  33. {{ form_help(form.picture) }}
  34. {% if gamemaster.picture %}
  35. <div class="field mt-2">
  36. <p><a href="{{ path('app_admin_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>
  37. </div>
  38. {% endif %}
  39. </div>
  40. <div class="column">
  41. {% if gamemaster.picture %}
  42. <img src="/images/gamemasters/{{ gamemaster.picture }}" class="image is-1by1"/>
  43. {% endif %}
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="box">
  49. <div class="field">
  50. {{ form_label(form.gamesCanMaster) }}
  51. {{ form_widget(form.gamesCanMaster) }}
  52. {{ form_help(form.gamesCanMaster) }}
  53. </div>
  54. </div>
  55. <div class="box">
  56. {{ form_row(form.linkToUser) }}
  57. </div>
  58. {{ form_widget(form) }}
  59. <div class="control">
  60. <button class="button is-primary" type="submit">Envoyer</button>
  61. <a href="{{ path('app_admin_gm') }}" class="button">Annuler</a>
  62. </div>
  63. {{ form_end(form) }}
  64. {% endblock %}