From 9a0b4db460c2d1d376cb82f4c11634cfb11733aa Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Fri, 29 Nov 2024 21:46:09 -0500 Subject: [PATCH] Update twigs --- templates/base.html.twig | 2 +- templates/internal/admin-dashboard.html.twig | 44 ++++++ templates/internal/dashboard.html.twig | 8 +- templates/internal/libs/breadcrumb.html.twig | 12 ++ templates/internal/libs/nav.html.twig | 91 +++++++++++ templates/internal/libs/top-nav.html.twig | 147 ++++++++++++++++++ templates/internal/profile.html.twig | 12 ++ templates/libs/nav.html.twig | 104 +++++++------ .../register-step-admin.html.twig | 27 ---- templates/security/login.html.twig | 78 ++-------- 10 files changed, 380 insertions(+), 145 deletions(-) create mode 100644 templates/internal/admin-dashboard.html.twig create mode 100644 templates/internal/libs/breadcrumb.html.twig create mode 100644 templates/internal/libs/nav.html.twig create mode 100644 templates/internal/libs/top-nav.html.twig create mode 100644 templates/internal/profile.html.twig diff --git a/templates/base.html.twig b/templates/base.html.twig index 6121b2a..5c533ba 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -17,7 +17,7 @@ - + diff --git a/templates/internal/admin-dashboard.html.twig b/templates/internal/admin-dashboard.html.twig new file mode 100644 index 0000000..50d1007 --- /dev/null +++ b/templates/internal/admin-dashboard.html.twig @@ -0,0 +1,44 @@ +{% extends 'base.html.twig' %} + +{% block title %}Admin Dashboard +{% endblock %} + +{% block body %} + {{ block('nav', 'internal/libs/nav.html.twig') }} + +
+ {{ block('topnav', 'internal/libs/top-nav.html.twig') }} +
+
+
+

Admin Dashboard

+

+ Check activity in the last 24 hours +

+
+
+
+
+
+
+

Yesterday's Visits

+

+
+
+ weekend +
+
+
+
+ +
+
+ +
+
+
+{% endblock %} diff --git a/templates/internal/dashboard.html.twig b/templates/internal/dashboard.html.twig index 3b57b31..4ca0071 100644 --- a/templates/internal/dashboard.html.twig +++ b/templates/internal/dashboard.html.twig @@ -3,4 +3,10 @@ {% block title %}Dashboard {% endblock %} -{% block body %}{% endblock %} +{% block body %} + {{ block('nav', 'internal/libs/nav.html.twig') }} + +
+ {{ block('topnav', 'internal/libs/top-nav.html.twig') }} +
+{% endblock %} diff --git a/templates/internal/libs/breadcrumb.html.twig b/templates/internal/libs/breadcrumb.html.twig new file mode 100644 index 0000000..b6118f8 --- /dev/null +++ b/templates/internal/libs/breadcrumb.html.twig @@ -0,0 +1,12 @@ +{% block breadcrumb %} + +{% endblock %} diff --git a/templates/internal/libs/nav.html.twig b/templates/internal/libs/nav.html.twig new file mode 100644 index 0000000..92a524f --- /dev/null +++ b/templates/internal/libs/nav.html.twig @@ -0,0 +1,91 @@ +{% block nav %} + +{% endblock %} diff --git a/templates/internal/libs/top-nav.html.twig b/templates/internal/libs/top-nav.html.twig new file mode 100644 index 0000000..7d409d0 --- /dev/null +++ b/templates/internal/libs/top-nav.html.twig @@ -0,0 +1,147 @@ +{% block topnav %} + + +{% endblock %} diff --git a/templates/internal/profile.html.twig b/templates/internal/profile.html.twig new file mode 100644 index 0000000..f764a15 --- /dev/null +++ b/templates/internal/profile.html.twig @@ -0,0 +1,12 @@ +{% extends 'base.html.twig' %} + +{% block title %}Profile +{% endblock %} + +{% block body %} + {{ block('nav', 'internal/libs/nav.html.twig') }} + +
+ {{ block('topnav', 'internal/libs/top-nav.html.twig') }} +
+{% endblock %} diff --git a/templates/libs/nav.html.twig b/templates/libs/nav.html.twig index 3aa23a3..906ff48 100644 --- a/templates/libs/nav.html.twig +++ b/templates/libs/nav.html.twig @@ -1,52 +1,56 @@ {% block nav %} - - - -{% endblock %} \ No newline at end of file + + +{% endblock %} diff --git a/templates/registration/register-step-admin.html.twig b/templates/registration/register-step-admin.html.twig index 2d9352c..9fd12c2 100644 --- a/templates/registration/register-step-admin.html.twig +++ b/templates/registration/register-step-admin.html.twig @@ -49,32 +49,6 @@ {{ form_end(form) }} - - - {% endblock %} diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index ba67d4a..93be37b 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -4,59 +4,22 @@ {% endblock %} {% block body %} - {# -
- {% if error %} -
{{ error.messageKey|trans(error.messageData, 'security') }}
- {% endif %} - - {% if app.user %} -
- You are logged in as - {{ app.user.userIdentifier }}, - Logout -
- {% endif %} - -

Please sign in

- - - - - - - - {# - Uncomment this section and add a remember_me option below your firewall to activate remember me functionality. - See https://symfony.com/doc/current/security/remember_me.html - -
- - -
- - - -
- #} -
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + --> +
+
{{ block("nav", "libs/nav.html.twig") }}
@@ -74,23 +37,6 @@

Sign in

-
-
- - - -
-
- - - -
-
- - - -
-