Feat: Enable bookmark toggling from overview, improve disposition detail

This commit is contained in:
Björn Fromme
2023-10-20 18:26:25 +02:00
parent 30ce617cf7
commit 69a6e0a0b6
8 changed files with 68 additions and 29 deletions
+6 -3
View File
@@ -68,9 +68,12 @@
<span>{{ label }}</span>
</a>
</div>
{% if teamer.bookmarks.contains(assignment) %}
{{ icon('star', 'w-5 h-5 text-yellow-500 absolute top-0 right-0 mt-2 mr-2') }}
{% endif %}
{% set isBookmarked = teamer.bookmarks.contains(assignment) %}
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="absolute top-0 right-0 mt-2 mr-2"
title="{{ isBookmarked ? 'Von der Merkliste löschen' : 'Auf die Merkliste setzen' }}">
{{ icon('star', html_classes('w-5 h-5', { 'text-yellow-500': isBookmarked, 'text-gray-200': not isBookmarked } )) }}
</a>
</div>
{% endfor %}
</div>