templates/app/tech-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('tech') }}
  5.     {{ encore_entry_script_tags('form') }}
  6. {% endblock %}
  7. {% block body %}
  8. <div class="container">
  9.     <h1>Schadenanzeige Technische Versicherung</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-md-12">
  57.                 <table class="col-md-12">
  58.                     <thead>
  59.                         <tr>
  60.                             <th class="align-top">Objekt</th>
  61.                             <th class="align-top">Geschätzter Schaden</th>
  62.                             <th class="align-top ml-2"></th>
  63.                         </tr>
  64.                     </thead>
  65.                     <tbody id="items" data-widget-counter="{{ form.items|length }}"
  66.                            data-prototype='<tr id="items__item__"><td>{{ form_widget(form.items.vars.prototype.name) }}</td><td>{{ form_widget(form.items.vars.prototype.damageAmount) }}</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>'
  67.                     >
  68.                         {% for item in form.items %}
  69.                             <tr>
  70.                                 <td>{{ form_widget(item.name) }}</td>
  71.                                 <td>{{ form_widget(item.damageAmount) }}</td>
  72.                                 <td>
  73.                                     <button type="button" class="btn btn-danger btn-sm remove-item" data-action="delete">
  74.                                         <i class="fas fa-trash"></i>
  75.                                     </button>
  76.                                 </td>
  77.                             </tr>
  78.                         {% endfor %}
  79.                     </tbody>
  80.                 </table>
  81.                 <button class="btn btn-sm btn-secondary my-md-1" id="add-item" data-list-selector="#items">Weiteres Objekt hinzufügen</button>
  82.             </div>
  83.         </div>
  84.     </div>
  85.     <div class="border mb-2 px-1">
  86.         <div class="row">
  87.             <div class="col-md-12">
  88.                 <label>Beteiligte / Zeugen</label>
  89.                 <table class="col-md-12">
  90.                     <thead>
  91.                     <tr>
  92.                         <th class="align-top">Name</th>
  93.                         <th class="align-top">Telefon</th>
  94.                         <th class="align-top">Email</th>
  95.                         <th class="align-top ml-2"></th>
  96.                     </tr>
  97.                     </thead>
  98.                     <tbody id="persons" data-widget-counter="{{ form.persons|length }}"
  99.                            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>'
  100.                     >
  101.                     {% for person in form.persons %}
  102.                         <tr>
  103.                             <td>{{ form_widget(person.name) }}</td>
  104.                             <td>{{ form_widget(person.phone) }}</td>
  105.                             <td>{{ form_widget(person.email) }}</td>
  106.                             <td>
  107.                                 <button type="button" class="btn btn-danger btn-sm remove-person" data-action="delete">
  108.                                     <i class="fas fa-trash"></i>
  109.                                 </button>
  110.                             </td>
  111.                         </tr>
  112.                     {% endfor %}
  113.                     </tbody>
  114.                 </table>
  115.                 <button class="btn btn-sm btn-secondary my-md-1" id="add-person" data-list-selector="#persons">Weitere Person hinzufügen</button>
  116.             </div>
  117.         </div>
  118.     </div>
  119.     <div class="border mb-2 px-1">
  120.         <div class="row">
  121.             <div class="col-md-12">
  122.                 {{ form_row(form.remark) }}
  123.             </div>
  124.         </div>
  125.     </div>
  126.     <div class="border mb-2 px-1">
  127.         <div class="row">
  128.             <div class="col-sm-12 col-lg-5">
  129.                 <label class="form-label required">Gemeldet durch</label>
  130.                 <div class="row">
  131.                     <div class="col-md-12">
  132.                         {{ form_row(form.name) }}
  133.                         {{ form_row(form.email) }}
  134.                     </div>
  135.                 </div>
  136.             </div>
  137.             <div class="col-sm-12 col-lg-5">
  138.                 <label class="form-label">Kopie an:</label>
  139.                 <div class="row">
  140.                     <div class="col-md-12">
  141.                         {{ form_row(form.ccEmail) }}
  142.                     </div>
  143.                 </div>
  144.             </div>
  145.         </div>
  146.     </div>
  147.     <div class="border mb-2 px-1">
  148.         {% block dropZone %}
  149.             {{ parent() }}
  150.         {% endblock %}
  151.     </div>
  152.     <div class="row justify-content-between">
  153.         <div class="col-md-4">
  154.             {{ form_widget(form.submit) }}
  155.         </div>
  156.         <div class="col-md-4">
  157.             <a href="{{ url('home') }}" class="btn btn-danger float-end">Zurück</a>
  158.         </div>
  159.     </div>
  160.     {{ form_end(form) }}
  161. </div>
  162. {% endblock %}