Feat: Add teamer photo to overview
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
<table class="data-table">
|
<table class="data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th></th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Name', 'teamer.lastName') }}
|
{{ knp_pagination_sortable(pagination, 'Name', 'teamer.lastName') }}
|
||||||
</th>
|
</th>
|
||||||
@@ -33,8 +34,19 @@
|
|||||||
{% for teamer in pagination %}
|
{% for teamer in pagination %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="#" class="whitespace-nowrap">
|
{% if teamer.photo %}
|
||||||
{{ teamer.lastName }}
|
<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>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -64,7 +76,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td colspan="6">
|
<td colspan="7">
|
||||||
Keine Daten...
|
Keine Daten...
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user