{% extends 'base.html.twig' %}
{% block title %}Verlauf von: {{ customer.fullname }}{% endblock %}
{% block body %}
<h1>Verlauf von: {{ customer.fullname }}</h1>
{{ include('customer/_tabs_nav.html.twig', {
'customer': customer,
'active': 'history'
}) }}
<div class="row pt-3">
<div class="col-sm-5">
<div class="form-group single-line-submit">
<input type="text" id="customer_history_search_input" name="customer_history_search" maxlength="255" class="form-control">
<button id="customer_history_search_submit" class="btn btn-secondary">suchen</button>
</div>
</div>
<div class="col-sm-7">
{{ form_start(history_add_form) }}
<div class="single-line-submit">
<div class="form-group">
{{ form_widget(history_add_form.entry, { 'attr': {'class': 'form-control', 'placeholder': 'Verlauf-Eintrag'} }) }}
{{ form_errors(history_add_form.entry) }}
</div>
<button class="btn btn-success">speichern</button>
</div>
{{ form_end(history_add_form) }}
</div>
</div>
<table
class="table table-hover table-striped sortable-paged-table search-paged-table"
data-target="{{ path('customer_history', { id: customer.id }) }}"
data-page="1"
data-search=""
data-search-target="customer_history_search">
<thead>
<tr>
<th class="order-field" data-orderby="date" data-order="asc">Datum</th>
<th class="order-field" data-orderby="subject" data-order="asc">Betreff</th>
<th class="order-field" data-orderby="subject" data-order="asc">Inhalt</th>
<th class="order-field" data-orderby="entry" data-order="asc">Funktion</th>
<th class="order-field" data-orderby="entry" data-order="asc">Auslöser</th>
<th></th>
</tr>
</thead>
{{ include('customer/tabs/_history_listing.html.twig', {
history: history,
total: total,
pages: pages,
page: page
}) }}
</table>
{% endblock %}