templates/employee_history/_employee_history_fields.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     <div class="col-xl-2"></div>
  3.     <div class="col-xl-8">
  4.         {{ form_start(form, {'method': 'POST', 'attr': {'class': 'form', 'enctype': 'multipart/form-data'}}) }}
  5.         <div class="card-body">
  6.             {% for key, field in form.children %}
  7.                 {% if key != "_token" %}
  8.                     <div class="row mb-6">
  9.                         <label class="col-lg-3 col-form-label">{{ form_label(field) }}</label>
  10.                         <div class="col-lg-6">
  11.                             {{ form_widget(field) }}
  12.                         </div>
  13.                     </div>
  14.                 {% endif %}
  15.             {% endfor %}
  16.         </div>
  17.         {% if readonly is not defined %}
  18.             <div class="card-footer">
  19.                 <div class="row">
  20.                     <div class="col-lg-3"></div>
  21.                     <div class="col-lg-6">
  22.                         <button type="submit"
  23.                                 class="btn btn-success mr-2">{{ button_label|default('Valider') }}</button>
  24.                         <button type="reset" class="btn btn-secondary">Annuler</button>
  25.                     </div>
  26.                 </div>
  27.             </div>
  28.         {% endif %}
  29.         {{ form_end(form) }}
  30.     </div>
  31. </div>