This commit is contained in:
2025-02-08 19:27:15 +07:00
parent dccf38d6d3
commit e41fa9b5b1
5 changed files with 114 additions and 411 deletions

View File

@@ -1,6 +1,6 @@
<div class="w-[100%]">
<div
class="m-[15px] px-[15px] py-[20px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)] overflow-x-auto">
class="m-[15px_0_15px_15px] px-[15px] py-[20px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)] overflow-x-auto">
<h1 class="text-2xl font-[700] mb-3">Danh sách sản phẩm ({{ page.total | format_number }})</h1>
<div class="flex justify-between items-center mt-[20px]">
<div class="btn-left flex items-center">
@@ -17,7 +17,7 @@
<a href="/admin/product/form"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[15px] font-[500]">
<span
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[12px] text-center rounded-[50%] mr-1">+</span>
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[11px] text-center rounded-[50%] mr-1">+</span>
<span>Thêm sản phẩm mới</span>
</a>
<a href=""

View File

@@ -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>