<div class="main-card mb-3 card">
<div class="card-body"><h5 class="card-title">E-maile</h5>
<div class="table-responsive">
<table class="mb-0 table">
<thead>
<tr>
<th>Tytuł</th>
<th>{{ email.subject }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>#</td>
<td>{{ email.messageUid }}</td>
</tr>
<tr>
<td>Data</td>
<td>{{ email.receiveDate }}</td>
</tr>
<tr>
<td>Nadawca</td>
<td>{{ email.sender }}</td>
</tr>
<tr>
<td>Odbiorca</td>
<td>{{ email.receiver }}</td>
</tr>
<tr>
<td>Klient</td>
{% if email.customer == null %}
<td> 'brak'</td>
{% else %}
<td>
<a href="{{ 'details?id=' ~ email.customer.id }}"> {{ email.customer.firstname }} {{ email.customer.lastname }}
({{ email.customer.email }} ,{{ email.customer.id }}) </a></td>
{% endif %}
</tr>
<tr>
<td>Treść</td>
<td>{{ email.messageText | raw }}</td>
</tr>
<tr>
<td>Załączniki</td>
<td>
{% for attachment in mailAttachments %}
<a href="{{ attachment.body }}" target="_blank">{{ attachment.name }}</a> <br>
{% endfor %}
</td>
</tr>
<tr style="display: none">
<td colspan="2">{{ email.messageText}}</td>
</tr>
{# {% for xpage in xpages %}#}
{# <a {% if not xpage.current %} href="{{ xpage.action }} {% endif %}">{{ xpage.number }}</a> #}
{# {% endfor %}#}
</tbody>
</table>
</div>
</div>
</div>