menu
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
|
||||
<link rel="stylesheet" media="screen" href="{{ 'fancybox.css' | asset_url }}" />
|
||||
<link rel="stylesheet" media="screen" href="{{ 'select2.css' | asset_url }}?v2.1" />
|
||||
<link rel="stylesheet" media="screen" href="{{ 'pc_style.css' | asset_url }}?v2024.1" />
|
||||
<link rel="stylesheet" media="screen" href="{{ 'pc_style.css' | asset_url }}?v2024.19" />
|
||||
|
||||
|
||||
</head>
|
||||
@@ -30,10 +30,6 @@
|
||||
|
||||
<!-- Menu full -->
|
||||
<div class="admin-menu-container box-menu sticky top-0 bottom-0 h-[100vh]" id="js-menu-big">
|
||||
<a href="javascript:void(0)" class="icon-close" title="Thu gọn menu" id="js-hide-menu">
|
||||
<i class="fa-solid fa-outdent"></i>
|
||||
</a>
|
||||
|
||||
<a href="" class="menu-logo">
|
||||
<img src="{{ 'logo.png' | asset_url }}" />
|
||||
</a>
|
||||
@@ -48,8 +44,9 @@
|
||||
{% assign _type = _category[0] %}
|
||||
{% assign _menuArray = _category[1].menu %}
|
||||
{% if _category[1].enable == 1 %}
|
||||
<details {% if _type==global.module %} open {% endif %}>
|
||||
<summary class="item {% if _type == global.module %} active {% endif %}">
|
||||
<details class="dropdown dropdown-hover" {% if _type==global.module %} open {% endif %}>
|
||||
<summary class="item {% if _type == global.module %} active {% endif %}" tabindex="{{_type}}"
|
||||
role="button">
|
||||
<div class="flex items-center">
|
||||
|
||||
{% if _type == 'order' %} <i class="icons icon-order"></i>
|
||||
@@ -72,6 +69,14 @@
|
||||
<i class="fa-solid fa-chevron-right"></i>
|
||||
</summary>
|
||||
|
||||
<div class="sub-hover dropdown-content" tabindex="{{_type}}">
|
||||
{% for _item in _menuArray %}
|
||||
<a href="{{ _item.url }}"
|
||||
class="{% if _item.view == global.view and _item.module == global.module %}current {% endif %}">
|
||||
{{_item.name }} </a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="sub-menu">
|
||||
{% for _item in _menuArray %}
|
||||
<a href="{{ _item.url }}"
|
||||
@@ -110,7 +115,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Menu collapse -->
|
||||
<div class="admin-menu box-menu fixed top-0 bg-[#004180] pb-[20px] h-[100vh] hidden" id="js-menu-small">
|
||||
<!-- <div class="admin-menu box-menu fixed top-0 bg-[#004180] pb-[20px] h-[100vh] hidden" id="js-menu-small">
|
||||
<div class="flex flex-col justify-between">
|
||||
<div>
|
||||
<div
|
||||
@@ -216,7 +221,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="admin-content-container ml-[50px]" id="js-admin-content-container">
|
||||
<!-- Header -->
|
||||
@@ -295,7 +300,6 @@
|
||||
{{ page_content }}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="status-notificatiom">
|
||||
@@ -308,7 +312,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="dropdown dropdown-hover dropdown-right">
|
||||
<div tabindex="0" role="button" class="btn m-1">Hover</d>
|
||||
<ul tabindex="0" class="dropdown-content menu bg-base-100 rounded-box z-[1] w-52 p-2 shadow">
|
||||
<li><a>Item 1</a></li>
|
||||
<li><a>Item 2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{{ 'jquery.js' | asset_url }}"></script>
|
||||
<script src="{{ 'tailwindcss.js' | asset_url }}"></script>
|
||||
|
||||
Reference in New Issue
Block a user