feat: replace some partials with twig components

This commit is contained in:
Björn Fromme
2024-03-01 11:13:47 +01:00
parent a668dcb326
commit f722afe7ff
23 changed files with 205 additions and 96 deletions
@@ -47,7 +47,7 @@
<span>{{ application.teamer }}</span>
{{ icon('info', 'w-4 h-4') }}
</button>
{% include '_partials/_rating_stars.html.twig' with { 'teamer': application.teamer } %}
<twig:RatingStars averageRating="{{ application.teamer.averageRating }}" />
</td>
<td>
{{ application.pickup|bpn_pickup_label|default('-') }}
@@ -138,7 +138,7 @@
<span>{{ disposition.teamer }}</span>
{{ icon('info', 'w-4 h-4') }}
</button>
{% include '_partials/_rating_stars.html.twig' with { 'teamer': disposition.teamer } %}
<twig:RatingStars averageRating="{{ disposition.teamer.averageRating }}" />
</td>
<td>
{{ disposition.remarks|nl2br|default('-') }}