Feat: Add teamer photo to overview

This commit is contained in:
Björn Fromme
2023-10-20 11:27:25 +02:00
parent 544e2f1c12
commit 6310ed3d00
+15 -3
View File
@@ -11,6 +11,7 @@
<table class="data-table">
<thead>
<tr>
<th></th>
<th>
{{ knp_pagination_sortable(pagination, 'Name', 'teamer.lastName') }}
</th>
@@ -33,8 +34,19 @@
{% for teamer in pagination %}
<tr>
<td>
<a href="#" class="whitespace-nowrap">
{{ teamer.lastName }}
{% if teamer.photo %}
<img src="{{ asset(teamer.photo.filename | imagine_filter('profile')) }}"
class="w-12 h-auto rounded-full"
alt="{{ teamer.firstName }}">
{% else %}
<div class="flex flex-col items-center justify-center w-12 h-12 border-2 border-gray-200 rounded-full">
{{ icon('user', 'w-10 h-10 text-gray-200') }}
</div>
{% endif %}
</td>
<td>
<a href="#">
<span class="whitespace-nowrap">{{ teamer.lastName }}</span>
</a>
</td>
<td>
@@ -64,7 +76,7 @@
</td>
</tr>
{% else %}
<td colspan="6">
<td colspan="7">
Keine Daten...
</td>
{% endfor %}