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