From ccadd4556c4c4ad30524f94b5959b34d09f97247 Mon Sep 17 00:00:00 2001 From: FlorianEisenmenger Date: Sun, 24 May 2026 02:25:59 +0200 Subject: [PATCH] twigs in atoms --- .../templates/_atoms/duration-help.html.twig | 5 + .../_atoms/icon-arrow-left.html.twig | 4 + .../_atoms/icon-arrow-right.html.twig | 4 + .../templates/_atoms/icon-calendar.html.twig | 9 ++ .../templates/_atoms/icon-delete.html.twig | 4 + httpdocs/templates/_atoms/icon-edit.html.twig | 4 + .../templates/_atoms/icon-restore.html.twig | 5 + .../_components/register-card.html.twig | 9 ++ .../_components/register-success.html.twig | 14 ++ .../nav.html.twig} | 2 +- .../templates/_sections/tt-header.html.twig | 59 ++++++++ httpdocs/templates/base.html.twig | 2 +- httpdocs/templates/client/index.html.twig | 6 +- .../registration/confirm_error.html.twig | 24 ++-- .../registration/confirmed.html.twig | 29 ++-- .../templates/registration/register.html.twig | 129 +++++++++--------- .../timetracking/_entry_row.html.twig | 13 +- .../templates/timetracking/week.html.twig | 71 +--------- 18 files changed, 218 insertions(+), 175 deletions(-) create mode 100644 httpdocs/templates/_atoms/duration-help.html.twig create mode 100644 httpdocs/templates/_atoms/icon-arrow-left.html.twig create mode 100644 httpdocs/templates/_atoms/icon-arrow-right.html.twig create mode 100644 httpdocs/templates/_atoms/icon-calendar.html.twig create mode 100644 httpdocs/templates/_atoms/icon-delete.html.twig create mode 100644 httpdocs/templates/_atoms/icon-edit.html.twig create mode 100644 httpdocs/templates/_atoms/icon-restore.html.twig create mode 100644 httpdocs/templates/_components/register-card.html.twig create mode 100644 httpdocs/templates/_components/register-success.html.twig rename httpdocs/templates/{_nav.html.twig => _sections/nav.html.twig} (97%) create mode 100644 httpdocs/templates/_sections/tt-header.html.twig diff --git a/httpdocs/templates/_atoms/duration-help.html.twig b/httpdocs/templates/_atoms/duration-help.html.twig new file mode 100644 index 0000000..d12de02 --- /dev/null +++ b/httpdocs/templates/_atoms/duration-help.html.twig @@ -0,0 +1,5 @@ +{# templates/_atoms/duration-help.html.twig #} +
+ ? + {{ 'app.entry.duration_hint'|trans }} +
diff --git a/httpdocs/templates/_atoms/icon-arrow-left.html.twig b/httpdocs/templates/_atoms/icon-arrow-left.html.twig new file mode 100644 index 0000000..bbac937 --- /dev/null +++ b/httpdocs/templates/_atoms/icon-arrow-left.html.twig @@ -0,0 +1,4 @@ +{# templates/_atoms/icon-arrow-left.html.twig #} + + + diff --git a/httpdocs/templates/_atoms/icon-arrow-right.html.twig b/httpdocs/templates/_atoms/icon-arrow-right.html.twig new file mode 100644 index 0000000..6f01f5b --- /dev/null +++ b/httpdocs/templates/_atoms/icon-arrow-right.html.twig @@ -0,0 +1,4 @@ +{# templates/_atoms/icon-arrow-right.html.twig #} + + + diff --git a/httpdocs/templates/_atoms/icon-calendar.html.twig b/httpdocs/templates/_atoms/icon-calendar.html.twig new file mode 100644 index 0000000..e01ea8e --- /dev/null +++ b/httpdocs/templates/_atoms/icon-calendar.html.twig @@ -0,0 +1,9 @@ +{# templates/_atoms/icon-calendar.html.twig #} + + + + + + + + diff --git a/httpdocs/templates/_atoms/icon-delete.html.twig b/httpdocs/templates/_atoms/icon-delete.html.twig new file mode 100644 index 0000000..a6b773e --- /dev/null +++ b/httpdocs/templates/_atoms/icon-delete.html.twig @@ -0,0 +1,4 @@ +{# templates/_atoms/icon-delete.html.twig #} + + + diff --git a/httpdocs/templates/_atoms/icon-edit.html.twig b/httpdocs/templates/_atoms/icon-edit.html.twig new file mode 100644 index 0000000..fd357be --- /dev/null +++ b/httpdocs/templates/_atoms/icon-edit.html.twig @@ -0,0 +1,4 @@ +{# templates/_atoms/icon-edit.html.twig #} + + + diff --git a/httpdocs/templates/_atoms/icon-restore.html.twig b/httpdocs/templates/_atoms/icon-restore.html.twig new file mode 100644 index 0000000..13f7400 --- /dev/null +++ b/httpdocs/templates/_atoms/icon-restore.html.twig @@ -0,0 +1,5 @@ +{# templates/_atoms/icon-restore.html.twig #} + + + + diff --git a/httpdocs/templates/_components/register-card.html.twig b/httpdocs/templates/_components/register-card.html.twig new file mode 100644 index 0000000..2230ec4 --- /dev/null +++ b/httpdocs/templates/_components/register-card.html.twig @@ -0,0 +1,9 @@ +{# templates/_components/register-card.html.twig #} +{# Nutzung: {% embed '_components/register-card.html.twig' %} + {% block content %}...{% endblock %} + {% endembed %} #} +
+
+ {% block content %}{% endblock %} +
+
diff --git a/httpdocs/templates/_components/register-success.html.twig b/httpdocs/templates/_components/register-success.html.twig new file mode 100644 index 0000000..308078a --- /dev/null +++ b/httpdocs/templates/_components/register-success.html.twig @@ -0,0 +1,14 @@ +{# templates/_components/register-success.html.twig #} +{# Variablen: + icon — z.B. '✓' oder '✕' + modifier — z.B. '' oder '--error' (optionaler BEM-Modifier auf __icon) + title — String + text — String, wird mit |raw ausgegeben (darf
enthalten) + btn_href — URL-String + btn_label — String #} +
+
{{ icon }}
+

{{ title }}

+

{{ text|raw }}

+ {{ btn_label }} +
diff --git a/httpdocs/templates/_nav.html.twig b/httpdocs/templates/_sections/nav.html.twig similarity index 97% rename from httpdocs/templates/_nav.html.twig rename to httpdocs/templates/_sections/nav.html.twig index 04358b1..b996192 100644 --- a/httpdocs/templates/_nav.html.twig +++ b/httpdocs/templates/_sections/nav.html.twig @@ -1,4 +1,4 @@ -{# templates/_nav.html.twig #} +{# templates/_sections/nav.html.twig #} {% set currentRoute = app.request.attributes.get('_route') %}