Feat: Add teamer info popup

This commit is contained in:
Björn Fromme
2023-10-20 11:08:23 +02:00
parent 67cc7bf4ed
commit 2d657611fa
9 changed files with 137 additions and 34 deletions
@@ -0,0 +1,26 @@
<h3 class="text-lg font-bold">
Lizenzen
</h3>
<ul class="pb-4 divide-y divide-gray-200">
{% for license in teamer.licenses %}
<li class="py-2">
<div class="flex items-center justify-between">
<span class="flex-1">{{ license.type|license_label }}</span>
<div class="flex items-center space-x-2">
{% if is_granted('DOWNLOAD', license.certificate) %}
<a href="{{ path('app_common_download', { 'uuid': license.certificate.uuid }) }}"
target="_blank"
title="Download Nachweis">
{{ icon('download', 'w-4 h-4') }}
</a>
{% endif %}
<span>{{ license.date|date('m/Y') }}</span>
</div>
</div>
</li>
{% else %}
<li class="py-2">
-
</li>
{% endfor %}
</ul>