templates/app/section/edit-modal.html.twig line 1

  1. <div
  2.   id="edit-modal"
  3.   class="modal fade"
  4.   tabindex="-1"
  5.   role="dialog"
  6.   aria-labelledby="edit-modal-label"
  7.   aria-hidden="true"
  8.   data-bs-backdrop="static"
  9.   data-bs-keyboard="true"
  10. >
  11.   <div class="modal-dialog modal-md">
  12.     {{ form_start(edit_form) }}
  13.     <div class="modal-content">
  14.       <div class="modal-header">
  15.         <h5 class="modal-title" id="edit-modal-label">
  16.           {% trans %} Modifier section {% endtrans %}
  17.         </h5>
  18.         <button
  19.           type="button"
  20.           class="btn-close"
  21.           data-bs-dismiss="modal"
  22.           aria-label="Close"
  23.         ></button>
  24.       </div>
  25.       <div class="modal-body">
  26.         <input type="hidden" id="section_edit_id" name="section[id]" />
  27.         <input
  28.           type="hidden"
  29.           name="section[_token]"
  30.           value="{{ csrf_token('edit_section') }}"
  31.         />
  32.         <div class="row mb-4">
  33.           <label for="horizontal-name-input" class="col-sm-3 col-form-label">
  34.             {{ form_label(edit_form.name) }}
  35.           </label>
  36.           <div class="col-sm-9">
  37.             {{ form_widget(edit_form.name) }}
  38.             <div class="text-danger" style="margin-top: 0.25rem">
  39.               <small>{{ form_errors(edit_form.name) }}</small>
  40.             </div>
  41.             <div class="text-info" style="margin-top: 0.25rem">
  42.               <small>{{ form_help(edit_form.name) }}</small>
  43.             </div>
  44.           </div>
  45.         </div>
  46.         <div class="row mb-4">
  47.           <label
  48.             for="horizontal-description-input"
  49.             class="col-sm-3 col-form-label"
  50.           >
  51.             {{ form_label(edit_form.description) }}
  52.           </label>
  53.           <div class="col-sm-9">
  54.             {{ form_widget(edit_form.description) }}
  55.             <div class="text-danger" style="margin-top: 0.25rem">
  56.               <small>{{ form_errors(edit_form.description) }}</small>
  57.             </div>
  58.             <div class="text-info" style="margin-top: 0.25rem">
  59.               <small>{{ form_help(edit_form.description) }}</small>
  60.             </div>
  61.           </div>
  62.         </div>
  63.         <div class="row mb-4">
  64.           <label
  65.             for="horizontal-age_range-input"
  66.             class="col-sm-3 col-form-label"
  67.           >
  68.             {{ form_label(edit_form.age_range) }}
  69.           </label>
  70.           <div class="col-sm-9">
  71.             {{ form_widget(edit_form.age_range) }}
  72.             <div class="text-danger" style="margin-top: 0.25rem">
  73.               <small>{{ form_errors(edit_form.age_range) }}</small>
  74.             </div>
  75.             <div class="text-info" style="margin-top: 0.25rem">
  76.               <small>{{ form_help(edit_form.age_range) }}</small>
  77.             </div>
  78.           </div>
  79.         </div>
  80.       </div>
  81.       <div class="modal-footer">
  82.         <button
  83.           type="button"
  84.           class="btn btn-secondary waves-effect"
  85.           data-bs-dismiss="modal"
  86.         >
  87.           {% trans %} Annuler {% endtrans %}
  88.         </button>
  89.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  90.           {% trans %} Sauvegarder {% endtrans %}
  91.         </button>
  92.       </div>
  93.     </div>
  94.     {{ form_end(form) }}
  95.   </div>
  96. </div>