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

  1. <div
  2.   id="add-modal"
  3.   class="modal fade"
  4.   tabindex="-1"
  5.   role="dialog"
  6.   aria-labelledby="add-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(form) }}
  13.     <div class="modal-content">
  14.       <div class="modal-header">
  15.         <h5 class="modal-title" id="add-modal-label">
  16.           {% trans %} Créer une nouvelle 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.         <div class="row mb-4">
  27.           <label for="horizontal-name-input" class="col-sm-3 col-form-label">
  28.             {{ form_label(form.name) }}
  29.           </label>
  30.           <div class="col-sm-9">
  31.             {{ form_widget(form.name) }}
  32.             <div class="text-danger" style="margin-top: 0.25rem">
  33.               <small>{{ form_errors(form.name) }}</small>
  34.             </div>
  35.             <div class="text-info" style="margin-top: 0.25rem">
  36.               <small>{{ form_help(form.name) }}</small>
  37.             </div>
  38.           </div>
  39.         </div>
  40.         <div class="row mb-4">
  41.           <label
  42.             for="horizontal-description-input"
  43.             class="col-sm-3 col-form-label"
  44.           >
  45.             {{ form_label(form.description) }}
  46.           </label>
  47.           <div class="col-sm-9">
  48.             {{ form_widget(form.description) }}
  49.             <div class="text-danger" style="margin-top: 0.25rem">
  50.               <small>{{ form_errors(form.description) }}</small>
  51.             </div>
  52.             <div class="text-info" style="margin-top: 0.25rem">
  53.               <small>{{ form_help(form.description) }}</small>
  54.             </div>
  55.           </div>
  56.         </div>
  57.         <div class="row mb-4">
  58.           <label
  59.             for="horizontal-age_range-input"
  60.             class="col-sm-3 col-form-label"
  61.           >
  62.             {{ form_label(form.age_range) }}
  63.           </label>
  64.           <div class="col-sm-9">
  65.             {{ form_widget(form.age_range) }}
  66.             <div class="text-danger" style="margin-top: 0.25rem">
  67.               <small>{{ form_errors(form.age_range) }}</small>
  68.             </div>
  69.             <div class="text-info" style="margin-top: 0.25rem">
  70.               <small>{{ form_help(form.age_range) }}</small>
  71.             </div>
  72.           </div>
  73.         </div>
  74.       </div>
  75.       <div class="modal-footer">
  76.         <button
  77.           type="button"
  78.           class="btn btn-secondary waves-effect"
  79.           data-bs-dismiss="modal"
  80.         >
  81.           {% trans %} Annuler {% endtrans %}
  82.         </button>
  83.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  84.           {% trans %} Sauvegarder {% endtrans %}
  85.         </button>
  86.       </div>
  87.     </div>
  88.     {{ form_end(form) }}
  89.   </div>
  90. </div>