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