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