templates/app/season/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 saison {% 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="season_edit_id" name="season[id]" />
  27.         <input
  28.           type="hidden"
  29.           name="season[_token]"
  30.           value="{{ csrf_token('edit_season') }}"
  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-start_date-input"
  66.             class="col-sm-3 col-form-label"
  67.           >
  68.             {{ form_label(edit_form.start_date) }}
  69.           </label>
  70.           <div class="col-sm-9">
  71.             {{ form_widget(edit_form.start_date) }}
  72.             <div class="text-danger" style="margin-top: 0.25rem">
  73.               <small>{{ form_errors(edit_form.start_date) }}</small>
  74.             </div>
  75.             <div class="text-info" style="margin-top: 0.25rem">
  76.               <small>{{ form_help(edit_form.start_date) }}</small>
  77.             </div>
  78.           </div>
  79.         </div>
  80.         <div class="row mb-4">
  81.           <label
  82.             for="horizontal-end_date-input"
  83.             class="col-sm-3 col-form-label"
  84.           >
  85.             {{ form_label(edit_form.end_date) }}
  86.           </label>
  87.           <div class="col-sm-9">
  88.             {{ form_widget(edit_form.end_date) }}
  89.             <div class="text-danger" style="margin-top: 0.25rem">
  90.               <small>{{ form_errors(edit_form.end_date) }}</small>
  91.             </div>
  92.             <div class="text-info" style="margin-top: 0.25rem">
  93.               <small>{{ form_help(edit_form.end_date) }}</small>
  94.             </div>
  95.           </div>
  96.         </div>
  97.       </div>
  98.       <div class="modal-footer">
  99.         <button
  100.           type="button"
  101.           class="btn btn-secondary waves-effect"
  102.           data-bs-dismiss="modal"
  103.         >
  104.           {% trans %} Annuler {% endtrans %}
  105.         </button>
  106.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  107.           {% trans %} Sauvegarder {% endtrans %}
  108.         </button>
  109.       </div>
  110.     </div>
  111.     {{ form_end(form) }}
  112.   </div>
  113. </div>