c
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{% include javascript/global %}
|
||||
|
||||
{% if global.name == 'home' %}
|
||||
{% include javascript/homepage %}
|
||||
{% if global.module == 'home' %}
|
||||
{% include javascript/homepage %}
|
||||
|
||||
{% elsif global.module == 'product' %}
|
||||
{% include javascript/product_form %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if global.name == 'product' %}
|
||||
{% include javascript/product_form %}
|
||||
{% endif %}
|
||||
@@ -24,12 +24,12 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{{ global | show_var }}
|
||||
{{ page | show_var }}
|
||||
<!--
|
||||
{{ page | show_var }}-->
|
||||
|
||||
<div class="admin-global-container">
|
||||
|
||||
<!-- Menu cũ -->
|
||||
<!-- 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>
|
||||
|
||||
Reference in New Issue
Block a user