templates/app/haft-form.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% use 'dropZone.html.twig' %}
  3. {% block javascripts %}
  4.     {{ encore_entry_script_tags('person') }}
  5.     {{ encore_entry_script_tags('form') }}
  6. {% endblock %}
  7. {% block body %}
  8. <div class="container">
  9.     <h1>Schadenanzeige Haftpflichtversicherung</h1>
  10.     {{ form_start(form) }}
  11.     <div class="row">
  12.         <div class="col-sm-12 col-lg-4">
  13.             {{ form_row(form.department) }}
  14.         </div>
  15.     </div>
  16.     <div class="border mb-2 px-1">
  17.         <div class="row">
  18.             <div class="col-sm-12 col-lg-3">
  19.                 {{ form_row(form.claimDate) }}
  20.             </div>
  21.             <div class="col-sm-12 col-lg-5">
  22.                 {{ form_row(form.claimAddress) }}
  23.             </div>
  24.         </div>
  25.     </div>
  26.     <div class="border mb-2 px-1">
  27.         <div class="row">
  28.             <div class="col-md-12">
  29.                 {{ form_row(form.claimDescription) }}
  30.             </div>
  31.         </div>
  32.     </div>
  33.     <div class="border mb-2 px-1">
  34.         <div class="row">
  35.             <div class="col-md-12">
  36.                 {{ form_row(form.damageCosts) }}
  37.             </div>
  38.         </div>
  39.     </div>
  40.     <div class="border mb-2 px-1">
  41.         <div class="row">
  42.             <div class="col-sm-12 col-lg-5">
  43.                 {{ form_row(form.damageBy) }}
  44.             </div>
  45.         </div>
  46.     </div>
  47.     <div class="border mb-2 px-1">
  48.         <div class="row">
  49.             <div class="col-sm-12 col-lg-5">
  50.                 {{ form_row(form.policeReport) }}
  51.             </div>
  52.         </div>
  53.     </div>
  54.     <div class="border mb-2 px-1">
  55.         <div class="row">
  56.             <div class="col-sm-12 col-lg-5">
  57.                 {{ form_row(form.injuredPerson) }}
  58.             </div>
  59.         </div>
  60.     </div>
  61.     <div class="border mb-2 px-1">
  62.         <div class="row">
  63.             <div class="col-sm-12 col-lg-5">
  64.                 {{ form_row(form.damagedItem) }}
  65.             </div>
  66.         </div>
  67.     </div>
  68.     <div class="border mb-2 px-1">
  69.         <div class="row">
  70.             <div class="col-md-12">
  71.                 <label>Beteiligte Personen</label>
  72.                 <table class="col-md-12">
  73.                     <thead>
  74.                     <tr>
  75.                         <th class="align-top">Name</th>
  76.                         <th class="align-top">Telefon</th>
  77.                         <th class="align-top">Email</th>
  78.                         <th class="align-top ml-2"></th>
  79.                     </tr>
  80.                     </thead>
  81.                     <tbody id="persons" data-widget-counter="{{ form.persons|length }}"
  82.                            data-prototype='<tr id="items__item__"><td>{{ form_widget(form.persons.vars.prototype.name) }}</td><td>{{ form_widget(form.persons.vars.prototype.phone) }}</td><td>{{ form_widget(form.persons.vars.prototype.email) }}</td><td><button type="button" class="btn btn-danger btn-sm remove-item" data-action="delete" data-row="items__item__"><i class="fas fa-trash"></i></button></td></tr>'
  83.                     >
  84.                     {% for person in form.persons %}
  85.                         <tr>
  86.                             <td>{{ form_widget(person.name) }}</td>
  87.                             <td>{{ form_widget(person.phone) }}</td>
  88.                             <td>{{ form_widget(person.email) }}</td>
  89.                             <td>
  90.                                 <button type="button" class="btn btn-danger btn-sm remove-person" data-action="delete">
  91.                                     <i class="fas fa-trash"></i>
  92.                                 </button>
  93.                             </td>
  94.                         </tr>
  95.                     {% endfor %}
  96.                     </tbody>
  97.                 </table>
  98.                 <button class="btn btn-sm btn-secondary my-md-1" id="add-person" data-list-selector="#persons">Weitere Person hinzufügen</button>
  99.             </div>
  100.         </div>
  101.     </div>
  102.     <div class="border mb-2 px-1">
  103.         <div class="row">
  104.             <div class="col-md-12">
  105.                 {{ form_row(form.remark) }}
  106.             </div>
  107.         </div>
  108.     </div>
  109.     <div class="border mb-2 px-1">
  110.         <div class="row">
  111.             <div class="col-sm-12 col-lg-5">
  112.                 <label class="form-label required">Gemeldet durch</label>
  113.                 <div class="row">
  114.                     <div class="col-md-12">
  115.                         {{ form_row(form.name) }}
  116.                         {{ form_row(form.email) }}
  117.                     </div>
  118.                 </div>
  119.             </div>
  120.             <div class="col-sm-12 col-lg-5">
  121.                 <label class="form-label">Kopie an:</label>
  122.                 <div class="row">
  123.                     <div class="col-md-12">
  124.                         {{ form_row(form.ccEmail) }}
  125.                     </div>
  126.                 </div>
  127.             </div>
  128.         </div>
  129.     </div>
  130.     <div class="border mb-2 px-1">
  131.         {% block dropZone %}
  132.             {{ parent() }}
  133.         {% endblock %}
  134.     </div>
  135.     <div class="row justify-content-between">
  136.         <div class="col-md-4">
  137.             {{ form_widget(form.submit) }}
  138.         </div>
  139.         <div class="col-md-4">
  140.             <a href="{{ url('home') }}" class="btn btn-danger float-end">Zurück</a>
  141.         </div>
  142.     </div>
  143.     {{ form_end(form) }}
  144. </div>
  145. {% endblock %}