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