From a0245a50e7267fec2cda57364cb295646b71cc52 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Mon, 9 Dec 2024 16:46:49 -0300 Subject: [PATCH] feat(pets): adds add pet option to menu --- app/templates/layout/menu.html | 18 ++++++++++++++---- app/utils/route_const.py | 5 ++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/app/templates/layout/menu.html b/app/templates/layout/menu.html index 5e73f8c..a1cca12 100644 --- a/app/templates/layout/menu.html +++ b/app/templates/layout/menu.html @@ -5,17 +5,27 @@ {% if menu_type == "movil" %} + {% if session["id"] %} + + {% endif %} {% else %} {% endif %} diff --git a/app/utils/route_const.py b/app/utils/route_const.py index 2c21a87..1b501b7 100644 --- a/app/utils/route_const.py +++ b/app/utils/route_const.py @@ -6,7 +6,10 @@ ROUTES = { 'register' : '/users/register', 'logout': '/users/logout' }, - 'pets': '/pets', + 'pets': { + 'index': '/pets', + 'register': '/pets/register' + }, 'about-us' : '/us/about', 'contact-us' : '/us/contact' } \ No newline at end of file