From da0763ece5d7043d8b89f5cd87a8f724fc284bb4 Mon Sep 17 00:00:00 2001 From: Anif7 Date: Fri, 13 Dec 2024 14:51:41 +0530 Subject: [PATCH] Add sidebar --- .../layouts/tpstreams/full_page_layout.html | 24 ++++--------------- src/tpstreams/roles/detail.html | 4 ++-- .../roles/includes/detail_header.html | 2 +- src/tpstreams/roles/index.html | 4 ++-- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/src/_includes/layouts/tpstreams/full_page_layout.html b/src/_includes/layouts/tpstreams/full_page_layout.html index eabf57cee..3c622954a 100644 --- a/src/_includes/layouts/tpstreams/full_page_layout.html +++ b/src/_includes/layouts/tpstreams/full_page_layout.html @@ -1,28 +1,14 @@ {% extends "layouts/tpstreams/base.html" %} {% block html_class %}h-full bg-white{% endblock html_class %} -{% block body_class %}h-full{% endblock body_class %} {% block content %} -
- -
-
+
+ {% include "partials/tpstreams/sidebar.html" %} +
+
-
+
{% block main_content %} {% endblock main_content %}
diff --git a/src/tpstreams/roles/detail.html b/src/tpstreams/roles/detail.html index 0327a7d58..42f79f0f9 100644 --- a/src/tpstreams/roles/detail.html +++ b/src/tpstreams/roles/detail.html @@ -8,7 +8,7 @@ {% block html_class %}h-full bg-gray-100{% endblock html_class %} -{% block body_class %}overflow-y-scroll min-h-screen bg-gray-100{% endblock %} +{% block body_class %}overflow-y-scroll min-h-screen bg-white{% endblock %} {% block main_content %}
@@ -16,7 +16,7 @@
{% include './includes/detail_header.html' %}
-
+
{% include "./includes/permission_table.html" %} {% include "./includes/assign_role_users.html" %} diff --git a/src/tpstreams/roles/includes/detail_header.html b/src/tpstreams/roles/includes/detail_header.html index 6e8402e9e..7e02ff7c4 100644 --- a/src/tpstreams/roles/includes/detail_header.html +++ b/src/tpstreams/roles/includes/detail_header.html @@ -18,7 +18,7 @@

- +

diff --git a/src/tpstreams/roles/index.html b/src/tpstreams/roles/index.html index f6d535c5e..ab755ff73 100644 --- a/src/tpstreams/roles/index.html +++ b/src/tpstreams/roles/index.html @@ -7,13 +7,13 @@ {% extends "layouts/tpstreams/full_page_layout.html" %} -{% block body_class %}overflow-y-scroll min-h-screen bg-gray-100{% endblock %} +{% block body_class %}overflow-y-scroll min-h-screen bg-white{% endblock %} {% block main_content %}
{% include './includes/roles_list_header.html' %}
-
+
{% if roles_list.length > 0 %} {% include './includes/roles_list_inner.html' %} {% else %}