templates/app/season/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 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.         <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-start_date-input"
  60.             class="col-sm-3 col-form-label"
  61.           >
  62.             {{ form_label(form.start_date) }}
  63.           </label>
  64.           <div class="col-sm-9">
  65.             {{ form_widget(form.start_date) }}
  66.             <div class="text-danger" style="margin-top: 0.25rem">
  67.               <small>{{ form_errors(form.start_date) }}</small>
  68.             </div>
  69.             <div class="text-info" style="margin-top: 0.25rem">
  70.               <small>{{ form_help(form.start_date) }}</small>
  71.             </div>
  72.           </div>
  73.         </div>
  74.         <div class="row mb-4">
  75.           <label
  76.             for="horizontal-end_date-input"
  77.             class="col-sm-3 col-form-label"
  78.           >
  79.             {{ form_label(form.end_date) }}
  80.           </label>
  81.           <div class="col-sm-9">
  82.             {{ form_widget(form.end_date) }}
  83.             <div class="text-danger" style="margin-top: 0.25rem">
  84.               <small>{{ form_errors(form.end_date) }}</small>
  85.             </div>
  86.             <div class="text-info" style="margin-top: 0.25rem">
  87.               <small>{{ form_help(form.end_date) }}</small>
  88.             </div>
  89.           </div>
  90.         </div>
  91.       </div>
  92.       <div class="modal-footer">
  93.         <button
  94.           type="button"
  95.           class="btn btn-secondary waves-effect"
  96.           data-bs-dismiss="modal"
  97.         >
  98.           {% trans %} Annuler {% endtrans %}
  99.         </button>
  100.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  101.           {% trans %} Sauvegarder {% endtrans %}
  102.         </button>
  103.       </div>
  104.     </div>
  105.     {{ form_end(form) }}
  106.   </div>
  107. </div>