From fd63e06eb0b91633ea1ca6696d54f299c1c370b6 Mon Sep 17 00:00:00 2001 From: Anaïs Amato Date: Tue, 11 May 2021 15:53:57 +0200 Subject: [PATCH] update coloration of in the navbar with id and not href --- app/main/templates/agent.html | 2 +- app/main/templates/agent_form.html | 2 +- app/main/templates/agents.html | 2 +- app/main/templates/charge_form.html | 2 +- app/main/templates/periods.html | 2 +- app/main/templates/project.html | 2 +- app/main/templates/projects.html | 2 +- app/main/templates/services.html | 2 +- app/static/js/navbar.js | 2 +- app/templates/base_page.html | 16 ++++++++-------- app/templates/project_form.html | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/main/templates/agent.html b/app/main/templates/agent.html index dca5d3f..d4f24c1 100644 --- a/app/main/templates/agent.html +++ b/app/main/templates/agent.html @@ -11,7 +11,7 @@ {% block content %} - +
diff --git a/app/main/templates/agent_form.html b/app/main/templates/agent_form.html index 315b618..ec95dc1 100644 --- a/app/main/templates/agent_form.html +++ b/app/main/templates/agent_form.html @@ -10,7 +10,7 @@ {% block content %} - +
{% if agent and agent['id'] not in ['', None] %} diff --git a/app/main/templates/agents.html b/app/main/templates/agents.html index f7a2a85..67cce38 100644 --- a/app/main/templates/agents.html +++ b/app/main/templates/agents.html @@ -10,7 +10,7 @@ {% block content %} - + diff --git a/app/main/templates/charge_form.html b/app/main/templates/charge_form.html index 7f92ea7..5c1619c 100644 --- a/app/main/templates/charge_form.html +++ b/app/main/templates/charge_form.html @@ -2,7 +2,7 @@ {% block content %} - +
diff --git a/app/main/templates/periods.html b/app/main/templates/periods.html index e04766c..e8f7d63 100644 --- a/app/main/templates/periods.html +++ b/app/main/templates/periods.html @@ -2,7 +2,7 @@ {% block content %} - +
diff --git a/app/main/templates/project.html b/app/main/templates/project.html index 3bcda17..7740a28 100644 --- a/app/main/templates/project.html +++ b/app/main/templates/project.html @@ -9,7 +9,7 @@ {% block content %} - +
diff --git a/app/main/templates/projects.html b/app/main/templates/projects.html index 60432b8..1736037 100644 --- a/app/main/templates/projects.html +++ b/app/main/templates/projects.html @@ -9,7 +9,7 @@ {% block content %} - +
diff --git a/app/main/templates/services.html b/app/main/templates/services.html index c49b8a4..5d9981d 100644 --- a/app/main/templates/services.html +++ b/app/main/templates/services.html @@ -2,7 +2,7 @@ {% block content %} - +
diff --git a/app/static/js/navbar.js b/app/static/js/navbar.js index bba12d0..2db7b15 100644 --- a/app/static/js/navbar.js +++ b/app/static/js/navbar.js @@ -9,5 +9,5 @@ const a_active = navbar_active_split[1]; $("#" + ul_active).addClass("show"); /* Active the li */ -var sublink_activate = $("a[href='/" + a_active + "']"); +var sublink_activate = $("#" + a_active); sublink_activate.addClass("sublink_activate"); \ No newline at end of file diff --git a/app/templates/base_page.html b/app/templates/base_page.html index 95ab0f9..f24c77e 100644 --- a/app/templates/base_page.html +++ b/app/templates/base_page.html @@ -47,12 +47,12 @@ Agent