This commit is contained in:
2024-01-28 10:53:31 +07:00
parent 7217f8b92f
commit 9052a3b7dd
10 changed files with 73 additions and 73 deletions

View File

@@ -24,12 +24,12 @@
</head>
<body>
{{ global | show_var }}
{{ page | show_var }}
<!--
{{ page | show_var }}-->
<div class="admin-global-container">
<!-- Menu -->
<!-- Menu full -->
<div class="admin-menu-container box-menu sticky top-0 bottom-0 h-[100vh] hidden" id="js-menu-big">
<a href="javascript:void(0)" class="icon-close" id="js-hide-menu">
<i class="fa-solid fa-outdent"></i>
@@ -42,14 +42,14 @@
<div class="menu-list">
<a href="/" class="item">
<i class="icons icon-home"></i>
<span class="title"> Home </span>
<span class="title"> Dashboard </span>
</a>
{% for _category in global.main_menu %}
{% assign _type = _category[0] %}
{% assign _menuArray = _category[1].menu %}
{% if _category[1].enable == 1 %}
<details {% if _type == global.name %} open {% endif %}>
<details {% if _type == global.module %} open {% endif %}>
<summary class="item">
<div class="flex items-center">
@@ -76,7 +76,7 @@
<div class="sub-menu">
{% for _item in _menuArray %}
<a href="?module={{ _item.module }}&view={{ _item.view }}" {% if _item.view == global.view and
_type == global.name %} class="current" {% endif %}> {{ _item.name }} </a>
_type == global.module %} class="current" {% endif %}> {{ _item.name }} </a>
{% endfor %}
</div>
</details>
@@ -109,7 +109,7 @@
</a>
</div>
<!-- Menu mới -->
<!-- Menu collapse -->
<div class="admin-menu box-menu sticky top-0 bg-[#004E99] flex flex-col justify-between pb-[20px] min-h-[100vh]" id="js-menu-small">
<div>
<div class="logo item items-center justify-center border-[rgba(255,255,255,0.15)] border-b p-[20px_0_38px_!important]">
@@ -125,7 +125,7 @@
<a href="/" class="icons icon-home"> </a>
<div class="sub-menu">
<p class="font-bold"> Home </p>
<p class="font-bold"> Dashboard </p>
</div>
</div>
@@ -155,7 +155,7 @@
<div class="menu-list">
{% for _item in _menuArray %}
<a href="?module={{ _item.module }}&view={{ _item.view }}" {% if _item.view == global.view and
_type == global.name %} class="current" {% endif %}> {{ _item.name }} </a>
_type == global.module %} class="current" {% endif %}> {{ _item.name }} </a>
{% endfor %}
</div>
</div>
@@ -279,4 +279,4 @@
{% include javascript/index %}
</body>
</html>
</html>