templates/app/classroom/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 la classe {% 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
  27.           type="hidden"
  28.           id="classroom_type_basic_edit_id"
  29.           name="classroom_type_basic[id]"
  30.         />
  31.         <input
  32.           type="hidden"
  33.           name="classroom_type_basic[_token]"
  34.           value="{{ csrf_token('edit_classroom') }}"
  35.         />
  36.         <div class="row mb-4">
  37.           <label for="horizontal-name-input" class="col-sm-3 col-form-label">
  38.             {{ form_label(edit_form.name) }}
  39.           </label>
  40.           <div class="col-sm-9">
  41.             {{ form_widget(edit_form.name) }}
  42.             <div class="text-danger" style="margin-top: 0.25rem">
  43.               <small>{{ form_errors(edit_form.name) }}</small>
  44.             </div>
  45.             <div class="text-info" style="margin-top: 0.25rem">
  46.               <small>{{ form_help(edit_form.name) }}</small>
  47.             </div>
  48.           </div>
  49.         </div>
  50.         <div class="row mb-4">
  51.           <label
  52.             for="horizontal-description-input"
  53.             class="col-sm-3 col-form-label"
  54.           >
  55.             {{ form_label(edit_form.description) }}
  56.           </label>
  57.           <div class="col-sm-9">
  58.             {{ form_widget(edit_form.description) }}
  59.             <div class="text-danger" style="margin-top: 0.25rem">
  60.               <small>{{ form_errors(edit_form.description) }}</small>
  61.             </div>
  62.             <div class="text-info" style="margin-top: 0.25rem">
  63.               <small>{{ form_help(edit_form.description) }}</small>
  64.             </div>
  65.           </div>
  66.         </div>
  67.         <div class="row mb-4">
  68.           <label
  69.             for="horizontal-capacity-input"
  70.             class="col-sm-3 col-form-label"
  71.           >
  72.             {{ form_label(edit_form.capacity) }}
  73.           </label>
  74.           <div class="col-sm-9">
  75.             {{ form_widget(edit_form.capacity) }}
  76.             <div class="text-danger" style="margin-top: 0.25rem">
  77.               <small>{{ form_errors(edit_form.capacity) }}</small>
  78.             </div>
  79.             <div class="text-info" style="margin-top: 0.25rem">
  80.               <small>{{ form_help(edit_form.capacity) }}</small>
  81.             </div>
  82.           </div>
  83.         </div>
  84.         <div class="row mb-4">
  85.           <label for="horizontal-section-input" class="col-sm-3 col-form-label">
  86.             {{ form_label(edit_form.section) }}
  87.           </label>
  88.           <div class="col-sm-9">
  89.             {{ form_widget(edit_form.section) }}
  90.             <div class="text-danger" style="margin-top: 0.25rem">
  91.               <small>{{ form_errors(edit_form.section) }}</small>
  92.             </div>
  93.             <div class="text-info" style="margin-top: 0.25rem">
  94.               <small>{{ form_help(edit_form.section) }}</small>
  95.             </div>
  96.           </div>
  97.         </div>
  98.       </div>
  99.       <div class="modal-footer">
  100.         <button
  101.           type="button"
  102.           class="btn btn-secondary waves-effect"
  103.           data-bs-dismiss="modal"
  104.         >
  105.           {% trans %} Annuler {% endtrans %}
  106.         </button>
  107.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  108.           {% trans %} Sauvegarder {% endtrans %}
  109.         </button>
  110.       </div>
  111.     </div>
  112.     {{ form_end(form) }}
  113.   </div>
  114. </div>