templates/app/subscription/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(form) }}
  13.     <div class="modal-content">
  14.       <div class="modal-header">
  15.         <h5 class="modal-title" id="edit-modal-label">
  16.           {% trans %} Modifier l'abonnement {% 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="subscription_type_basic_edit_id"
  29.           name="subscription_type_basic[id]"
  30.         />
  31.         <input
  32.           type="hidden"
  33.           name="subscription_type_basic[_token]"
  34.           value="{{ csrf_token('edit_subscription') }}"
  35.         />
  36.         <div class="row mb-4">
  37.           <label for="horizontal-child-input" class="col-sm-3 col-form-label">
  38.             {{ form_label(edit_form.child) }}
  39.           </label>
  40.           <div class="col-sm-9">
  41.             {{ form_widget(edit_form.child) }}
  42.             <div class="text-danger" style="margin-top: 0.25rem">
  43.               <small>{{ form_errors(edit_form.child) }}</small>
  44.             </div>
  45.             <div class="text-info" style="margin-top: 0.25rem">
  46.               <small>{{ form_help(edit_form.child) }}</small>
  47.             </div>
  48.           </div>
  49.         </div>
  50.         <div class="row mb-4">
  51.           <label for="horizontal-service-input" class="col-sm-3 col-form-label">
  52.             {{ form_label(edit_form.service) }}
  53.           </label>
  54.           <div class="col-sm-9">
  55.             {{ form_widget(edit_form.service) }}
  56.             <div class="text-danger" style="margin-top: 0.25rem">
  57.               <small>{{ form_errors(edit_form.service) }}</small>
  58.             </div>
  59.             <div class="text-info" style="margin-top: 0.25rem">
  60.               <small>{{ form_help(edit_form.service) }}</small>
  61.             </div>
  62.           </div>
  63.         </div>
  64.         <div class="row mb-4">
  65.           <label
  66.             for="horizontal-start_date-input"
  67.             class="col-sm-3 col-form-label"
  68.           >
  69.             {{ form_label(edit_form.start_date) }}
  70.           </label>
  71.           <div class="col-sm-9">
  72.             {{ form_widget(edit_form.start_date) }}
  73.             <div class="text-danger" style="margin-top: 0.25rem">
  74.               <small>{{ form_errors(edit_form.start_date) }}</small>
  75.             </div>
  76.             <div class="text-info" style="margin-top: 0.25rem">
  77.               <small>{{ form_help(edit_form.start_date) }}</small>
  78.             </div>
  79.           </div>
  80.         </div>
  81.         <div class="row mb-4">
  82.           <label
  83.             for="horizontal-expire_date-input"
  84.             class="col-sm-3 col-form-label"
  85.           >
  86.             {{ form_label(edit_form.expire_date) }}
  87.           </label>
  88.           <div class="col-sm-9">
  89.             {{ form_widget(edit_form.expire_date) }}
  90.             <div class="text-danger" style="margin-top: 0.25rem">
  91.               <small>{{ form_errors(edit_form.expire_date) }}</small>
  92.             </div>
  93.             <div class="text-info" style="margin-top: 0.25rem">
  94.               <small>{{ form_help(edit_form.expire_date) }}</small>
  95.             </div>
  96.           </div>
  97.         </div>
  98.         {#
  99.         <div class="row mb-4">
  100.           <label
  101.             for="horizontal-quantity-input"
  102.             class="col-sm-3 col-form-label"
  103.           >
  104.             {{ form_label(edit_form.quantity) }}
  105.           </label>
  106.           <div class="col-sm-9">
  107.             {{ form_widget(edit_form.quantity) }}
  108.             <div class="text-danger" style="margin-top: 0.25rem">
  109.               <small>{{ form_errors(edit_form.quantity) }}</small>
  110.             </div>
  111.             <div class="text-info" style="margin-top: 0.25rem">
  112.               <small>{{ form_help(edit_form.quantity) }}</small>
  113.             </div>
  114.           </div>
  115.         </div>
  116.         #}
  117.         <div class="row mb-4">
  118.           <label
  119.             for="horizontal-discount-input"
  120.             class="col-sm-3 col-form-label"
  121.           >
  122.             {{ form_label(edit_form.discount) }}
  123.           </label>
  124.           <div class="col-sm-9">
  125.             {{ form_widget(edit_form.discount) }}
  126.             <div class="text-danger" style="margin-top: 0.25rem">
  127.               <small>{{ form_errors(edit_form.discount) }}</small>
  128.             </div>
  129.             <div class="text-info" style="margin-top: 0.25rem">
  130.               <small>{{ form_help(edit_form.discount) }}</small>
  131.             </div>
  132.           </div>
  133.         </div>
  134.         <div class="row mb-4">
  135.           <label
  136.             for="horizontal-description-input"
  137.             class="col-sm-3 col-form-label"
  138.           >
  139.             {{ form_label(edit_form.description) }}
  140.           </label>
  141.           <div class="col-sm-9">
  142.             {{ form_widget(edit_form.description) }}
  143.             <div class="text-danger" style="margin-top: 0.25rem">
  144.               <small>{{ form_errors(edit_form.description) }}</small>
  145.             </div>
  146.             <div class="text-info" style="margin-top: 0.25rem">
  147.               <small>{{ form_help(edit_form.description) }}</small>
  148.             </div>
  149.           </div>
  150.         </div>
  151.       </div>
  152.       <div class="modal-footer">
  153.         <button
  154.           type="button"
  155.           class="btn btn-secondary waves-effect"
  156.           data-bs-dismiss="modal"
  157.         >
  158.           {% trans %} Annuler {% endtrans %}
  159.         </button>
  160.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  161.           {% trans %} Sauvegarder {% endtrans %}
  162.         </button>
  163.       </div>
  164.     </div>
  165.     {{ form_end(form) }}
  166.   </div>
  167. </div>