From 27a1680fe386db99fd983eba64533091b9451d27 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 27 Jan 2022 10:29:07 +0100 Subject: Add layout to home route --- templates/home.twig | 28 +++++++++++++++++++--------- templates/root.twig | 8 +++++--- 2 files changed, 24 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/home.twig b/templates/home.twig index d4e86ed..47aebde 100644 --- a/templates/home.twig +++ b/templates/home.twig @@ -1,14 +1,24 @@ +{% extends 'base.twig' %} + +{% block main %}

Home

-
- {% for key, field in fields %} +
+{{ dump(debug) }}
+
+ +
+ + {% for key, field in fields %} + + {% endfor %} - {% endfor %} - - - + + +
+{% endblock %} diff --git a/templates/root.twig b/templates/root.twig index 8be64dd..b901ffb 100644 --- a/templates/root.twig +++ b/templates/root.twig @@ -1,11 +1,13 @@ - - + + Elements + {% block css %}{% endblock %} {% block body %}{% endblock %} {% block js %}{% endblock %} - \ No newline at end of file + + -- cgit v1.2.3