templates/app/sach-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 Sachversicherung</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.sachOwner) }}
  44.             </div>
  45.             <div class="col-sm-12 col-lg-5">
  46.                 {{ form_row(form.damageBy) }}
  47.             </div>
  48.         </div>
  49.     </div>
  50.     <div class="border mb-2 px-1">
  51.         <div class="row">
  52.             <div class="col-sm-12 col-lg-4">
  53.                 {{ form_row(form.policeReport) }}
  54.             </div>
  55.             <div class="col-sm-12 col-lg-4">
  56.                 {{ form_row(form.policeReportDate) }}
  57.             </div>
  58.         </div>
  59.     </div>
  60.     <div class="border mb-2 px-1">
  61.         <div class="row">
  62.             <div class="col-md-12">
  63.                 <label>Beteiligte / Zeugen</label>
  64.                 <table class="col-md-12">
  65.                     <thead>
  66.                     <tr>
  67.                         <th class="align-top">Name</th>
  68.                         <th class="align-top">Telefon</th>
  69.                         <th class="align-top">Email</th>
  70.                         <th class="align-top ml-2"></th>
  71.                     </tr>
  72.                     </thead>
  73.                     <tbody id="persons" data-widget-counter="{{ form.persons|length }}"
  74.                            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>'
  75.                     >
  76.                     {% for person in form.persons %}
  77.                         <tr>
  78.                             <td>{{ form_widget(person.name) }}</td>
  79.                             <td>{{ form_widget(person.phone) }}</td>
  80.                             <td>{{ form_widget(person.email) }}</td>
  81.                             <td>
  82.                                 <button type="button" class="btn btn-danger btn-sm remove-person" data-action="delete">
  83.                                     <i class="fas fa-trash"></i>
  84.                                 </button>
  85.                             </td>
  86.                         </tr>
  87.                     {% endfor %}
  88.                     </tbody>
  89.                 </table>
  90.                 <button class="btn btn-sm btn-secondary my-md-1" id="add-person" data-list-selector="#persons">Weitere Person hinzufügen</button>
  91.             </div>
  92.         </div>
  93.     </div>
  94.     <div class="border mb-2 px-1">
  95.         <div class="row">
  96.             <div class="col-md-12">
  97.                 {{ form_row(form.remark) }}
  98.             </div>
  99.         </div>
  100.     </div>
  101.     <div class="border mb-2 px-1">
  102.         <div class="row">
  103.             <div class="col-sm-12 col-lg-5">
  104.                 <label class="form-label required">Gemeldet durch</label>
  105.                 <div class="row">
  106.                     <div class="col-md-12">
  107.                         {{ form_row(form.name) }}
  108.                         {{ form_row(form.email) }}
  109.                     </div>
  110.                 </div>
  111.             </div>
  112.             <div class="col-sm-12 col-lg-5">
  113.                 <label class="form-label">Kopie an:</label>
  114.                 <div class="row">
  115.                     <div class="col-md-12">
  116.                         {{ form_row(form.ccEmail) }}
  117.                     </div>
  118.                 </div>
  119.             </div>
  120.         </div>
  121.     </div>
  122.     <div class="border mb-2 px-1">
  123.         {% block dropZone %}
  124.             {{ parent() }}
  125.         {% endblock %}
  126.     </div>
  127.     <div class="row justify-content-between">
  128.         <div class="col-md-4">
  129.             {{ form_widget(form.submit) }}
  130.         </div>
  131.         <div class="col-md-4">
  132.             <a href="{{ url('home') }}" class="btn btn-danger float-end">Zurück</a>
  133.         </div>
  134.     </div>
  135.     {{ form_end(form) }}
  136. </div>
  137. {% endblock %}