From f1bee04e60a34efb41a3ce9d72fccabe3bd3cb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 7 Dec 2023 15:18:27 +0100 Subject: [PATCH] refactor: use partial in favor of macro --- templates/admin/index.html.twig | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/templates/admin/index.html.twig b/templates/admin/index.html.twig index 0d642c7..d1a60be 100644 --- a/templates/admin/index.html.twig +++ b/templates/admin/index.html.twig @@ -1,11 +1,5 @@ {% extends 'admin/layout.html.twig' %} -{% macro dot() %} - - - -{% endmacro %} - {% block content %}
@@ -22,11 +16,11 @@ {{ icon('hand', 'w-4 h-4 shrink-0') }} {{ application.teamer.fullName(true) }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ assignment.effectivePeriod.start|date('d.m.y') }} - {{ assignment.effectivePeriod.end|date('d.m.y') }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ assignment.destination.hotel }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ assignment.jobProfile.name }} @@ -55,7 +49,7 @@ {{ icon('download', 'w-4 h-4 shrink-0') }} {{ document.owner.teamer.fullName(true) }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ document.originalFilename }} @@ -76,9 +70,9 @@ {{ icon('calendar', 'w-4 h-4 shrink-0') }} {{ assignment.effectivePeriod.start|date('d.m.y') }} - {{ assignment.effectivePeriod.end|date('d.m.y') }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ assignment.jobProfile.name }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ assignment.owner.fullName(true) }} @@ -99,7 +93,7 @@ {{ icon('calendar', 'w-4 h-4 shrink-0') }} {{ availability.owner.fullName(true) }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ availability.dateFrom|date('d.m.y') }} - {{ availability.dateTo|date('d.m.y') }} @@ -125,9 +119,9 @@ {{ icon('feedback', 'w-4 h-4 shrink-0') }} {{ feedback.teamer }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ feedback.destinationName }} - {{ _self.dot() }} + {% include '_partials/_dot.html.twig' %} {{ feedback.jobProfileName }}