templates/app/payment/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 paiement {% 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
  28.             for="horizontal-subscription-input"
  29.             class="col-sm-3 col-form-label"
  30.           >
  31.             {{ form_label(form.subscription) }}
  32.           </label>
  33.           <div class="col-sm-9">
  34.             {{ form_widget(form.subscription) }}
  35.             <div class="text-danger" style="margin-top: 0.25rem">
  36.               <small>{{ form_errors(form.subscription) }}</small>
  37.             </div>
  38.             <div class="text-info" style="margin-top: 0.25rem">
  39.               <small>{{ form_help(form.subscription) }}</small>
  40.             </div>
  41.           </div>
  42.         </div>
  43.         <div class="row mb-4">
  44.           <label
  45.             for="horizontal-payed_by-input"
  46.             class="col-sm-3 col-form-label"
  47.           >
  48.             {{ form_label(form.payed_by) }}
  49.           </label>
  50.           <div class="col-sm-9">
  51.             {{ form_widget(form.payed_by) }}
  52.             <div class="text-danger" style="margin-top: 0.25rem">
  53.               <small>{{ form_errors(form.payed_by) }}</small>
  54.             </div>
  55.             <div class="text-info" style="margin-top: 0.25rem">
  56.               <small>{{ form_help(form.payed_by) }}</small>
  57.             </div>
  58.           </div>
  59.         </div>
  60.         <div class="row mb-4">
  61.           <label for="horizontal-amount-input" class="col-sm-3 col-form-label">
  62.             {{ form_label(form.amount) }}
  63.           </label>
  64.           <div class="col-sm-9">
  65.             {{ form_widget(form.amount) }}
  66.             <div class="text-danger" style="margin-top: 0.25rem">
  67.               <small>{{ form_errors(form.amount) }}</small>
  68.             </div>
  69.             <div class="text-info" style="margin-top: 0.25rem">
  70.               <small>{{ form_help(form.amount) }}</small>
  71.             </div>
  72.           </div>
  73.         </div>
  74.         <div class="row mb-4">
  75.           <label for="horizontal-date-input" class="col-sm-3 col-form-label">
  76.             {{ form_label(form.date) }}
  77.           </label>
  78.           <div class="col-sm-9">
  79.             {{ form_widget(form.date) }}
  80.             <div class="text-danger" style="margin-top: 0.25rem">
  81.               <small>{{ form_errors(form.date) }}</small>
  82.             </div>
  83.             <div class="text-info" style="margin-top: 0.25rem">
  84.               <small>{{ form_help(form.date) }}</small>
  85.             </div>
  86.           </div>
  87.         </div>
  88.         <div class="row mb-4">
  89.           <label
  90.             for="horizontal-description-input"
  91.             class="col-sm-3 col-form-label"
  92.           >
  93.             {{ form_label(form.description) }}
  94.           </label>
  95.           <div class="col-sm-9">
  96.             {{ form_widget(form.description) }}
  97.             <div class="text-danger" style="margin-top: 0.25rem">
  98.               <small>{{ form_errors(form.description) }}</small>
  99.             </div>
  100.             <div class="text-info" style="margin-top: 0.25rem">
  101.               <small>{{ form_help(form.description) }}</small>
  102.             </div>
  103.           </div>
  104.         </div>
  105.       </div>
  106.       <div class="modal-footer">
  107.         <button
  108.           type="button"
  109.           class="btn btn-secondary waves-effect"
  110.           data-bs-dismiss="modal"
  111.         >
  112.           {% trans %} Annuler {% endtrans %}
  113.         </button>
  114.         <button type="submit" class="btn btn-primary waves-effect waves-light">
  115.           {% trans %} Sauvegarder {% endtrans %}
  116.         </button>
  117.       </div>
  118.     </div>
  119.     {{ form_end(form) }}
  120.   </div>
  121. </div>