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