up
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
// Popup
|
||||
Fancybox.bind("[data-fancybox]", {});
|
||||
|
||||
// Sự kiện click để hiển thị menu
|
||||
$('#js-show-menu').click(function () {
|
||||
@@ -19,10 +17,6 @@
|
||||
|
||||
AdminFunctions.searchSuggestions('#js-input-search')
|
||||
|
||||
AdminFunctions.initializeSearchDropdown('#js-assign-admin');
|
||||
|
||||
AdminFunctions.initializeSearchDropdown('#js-order-status-select');
|
||||
|
||||
})
|
||||
|
||||
function formatCurrency(a) {
|
||||
@@ -31,4 +25,11 @@
|
||||
b = b.substring(0, len - 3);
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
function toggleSubMenu(id) {
|
||||
const submenu = $('#' + id);
|
||||
submenu.toggle();
|
||||
$('#js-menu-big').toggleClass('active');
|
||||
}
|
||||
</script>
|
||||
@@ -37,5 +37,4 @@
|
||||
});
|
||||
|
||||
|
||||
$("#brandSelect").select2();
|
||||
</script>
|
||||
@@ -51,8 +51,9 @@
|
||||
<td> Địa chỉ nhận hàng </td>
|
||||
<td>
|
||||
<span> Kiến Hưng, Quận Hà Đông, Hà Nội </span>
|
||||
<a href="#js-update-shipping-address" data-fancybox title="Cập nhật địa chỉ nhận hàng"
|
||||
class="icons icon-edit inline-block" style="background-position: -111px -86px;"></a>
|
||||
<a onclick="js_update_shipping_address.showModal()" href="javascript:void(0)"
|
||||
title="Cập nhật địa chỉ nhận hàng" class="icons icon-edit inline-block"
|
||||
style="background-position: -111px -86px;"></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -329,80 +330,85 @@
|
||||
</div>
|
||||
|
||||
<!-- // Cập nhật địa chỉ nhận hàng -->
|
||||
<div id="js-update-shipping-address" class="p-[20px_16px] rounded-[15px] w-[100%] max-w-[600px]" style="display: none;">
|
||||
<p class="leading-[20px] text-[16px] font-bold mb-[20px]"> Cập nhật địa chỉ nhận hàng </p>
|
||||
<dialog id="js_update_shipping_address" class="modal">
|
||||
<div class="p-[20px_16px] rounded-[15px] w-[100%] max-w-[600px] bg-white modal-box">
|
||||
<p class="leading-[20px] text-[16px] font-bold mb-[20px]"> Cập nhật địa chỉ nhận hàng </p>
|
||||
|
||||
<table class="w-[100%]">
|
||||
<tr>
|
||||
<td width="100">Họ tên</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-person_name" value="Nguyen Duc Quan"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<table class="w-[100%]">
|
||||
<tr>
|
||||
<td width="100">Họ tên</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-person_name" value="Nguyen Duc Quan"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Mobile</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-mobile" value="0832256395"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mobile</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-mobile" value="0832256395"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Tỉnh/thành</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-province_name" value="TP HCM"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tỉnh/thành</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-province_name" value="TP HCM"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Quận huyện</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-district_name" value="Quận Gò Vấp"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Quận huyện</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-district_name" value="Quận Gò Vấp"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Phường/xã</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-ward_name" value=""
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phường/xã</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-ward_name" value=""
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Địa chỉ</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-address" size="50" value="Kiến Hưng - Hà Đông - Hà Nội"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Địa chỉ</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-address" size="50" value="Kiến Hưng - Hà Đông - Hà Nội"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--<tr><td>Phân loại</td><td><input type=text id="js-shipping-address-type" size=30 value="" /></td></tr>-->
|
||||
<tr>
|
||||
<td>Ghi chú</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-note" value="test"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
<!--<tr><td>Phân loại</td><td><input type=text id="js-shipping-address-type" size=30 value="" /></td></tr>-->
|
||||
<tr>
|
||||
<td>Ghi chú</td>
|
||||
<td>
|
||||
<input type="text" id="js-shipping-address-note" value="test"
|
||||
class="shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] p-[0_10px] w-[100%] h-[32px] mb-[10px] border border-[#D8D8D8] rounded-[4px] block">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="button" value="Cập nhật" onclick="OrderManagement.updateShippingAddress()"
|
||||
class="text-[#fff] bg-[#0041E8] rounded-[4px] h-[32px] p-[0_8px] cursor-pointer">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="button" value="Cập nhật" onclick="OrderManagement.updateShippingAddress()"
|
||||
class="text-[#fff] bg-[#0041E8] rounded-[4px] h-[32px] p-[0_8px] cursor-pointer">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<form method="dialog" class="modal-backdrop">
|
||||
<button>close</button>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
|
||||
<!-- // Cập nhật địa chỉ thanh toán -->
|
||||
<div id="js-update-payment" class="p-[20px_16px] rounded-[15px] w-[100%] max-w-[600px]" style="display: none;">
|
||||
<dialog id="js_update_payment" class="p-[20px_16px] rounded-[15px] w-[100%] max-w-[600px]" style="display: none;">
|
||||
<p class="leading-[20px] text-[16px] font-bold mb-[15px]"> Cập nhật địa chỉ thanh toán </p>
|
||||
|
||||
<label class="inline-flex cursor-pointer">
|
||||
@@ -482,7 +488,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
|
||||
<!-- // Cập nhật phí ship cho đơn hàng -->
|
||||
|
||||
@@ -113,4 +113,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="checkbox" checked="checked"
|
||||
class="checkbox border-orange-400 [--chkbg:theme(colors.indigo.600)] [--chkfg:orange] checked:border-indigo-800" />
|
||||
<input type="checkbox" checked="checked" class="checkbox [--chkbg:oklch(var(--a))] [--chkfg:oklch(var(--p))]" />
|
||||
@@ -11,13 +11,9 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap"
|
||||
rel="stylesheet">
|
||||
<!-- <link href="https://cdn.jsdelivr.net/npm/daisyui@4.6.0/dist/full.min.css" rel="stylesheet" type="text/css" /> -->
|
||||
<link rel="stylesheet" media="screen" href="{{ 'full.min.css' | asset_url }}?v12.11" />
|
||||
<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.19" />
|
||||
|
||||
<script src="{{ 'tailwindcss.js' | asset_url }}"></script>
|
||||
|
||||
</head>
|
||||
|
||||
@@ -29,12 +25,12 @@
|
||||
<div class="admin-global-container">
|
||||
|
||||
<!-- Menu full -->
|
||||
<div class="admin-menu-container box-menu sticky top-0 bottom-0 h-[100vh]" id="js-menu-big">
|
||||
<div class="admin-menu-container box-menu fixed top-0 left-0 h-[100vh] z-[999]" id="js-menu-big">
|
||||
<a href="" class="menu-logo">
|
||||
<img src="{{ 'logo.png' | asset_url }}" />
|
||||
</a>
|
||||
|
||||
<div class="menu-list m-[50px_5px]">
|
||||
<div class="menu-list m-[25px_5px]">
|
||||
<a href="/"
|
||||
class="item flex items-center cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px] {% if global.module == 'home' %} active {% endif %}">
|
||||
<i class="icons icon-home"></i>
|
||||
@@ -45,9 +41,9 @@
|
||||
{% assign _type = _category[0] %}
|
||||
{% assign _menuArray = _category[1].menu %}
|
||||
{% if _category[1].enable == 1 %}
|
||||
<details class="relative w-[100%]" {% if _type==global.module %} open {% endif %}>
|
||||
<summary class="item flex items-center justify-between cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]
|
||||
{% if _type == global.module %} active {% endif %}">
|
||||
<div class="relative w-[100%] box-item" {% if _type==global.module %} open {% endif %}>
|
||||
<div class="item flex items-center justify-between cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]
|
||||
{% if _type == global.module %} active {% endif %}" onclick="toggleSubMenu('{{ _type }}')">
|
||||
<div class="flex items-center">
|
||||
{% if _type == 'order' %} <i class="icons w-[20px] h-[20px] mr-[13px] icon-order"></i>
|
||||
{% elsif _type == 'product' %} <i
|
||||
@@ -74,47 +70,38 @@
|
||||
</div>
|
||||
|
||||
<i class="fa-solid fa-chevron-right"></i>
|
||||
</summary>
|
||||
</div>
|
||||
|
||||
<div class="sub-menu">
|
||||
<div class="sub-menu" id="{{ _type }}">
|
||||
{% for _item in _menuArray %}
|
||||
<a href="{{ _item.url }}"
|
||||
class="p-[8px_16px] flex items-center {% if _item.view == global.view and _item.module == global.module %}current {% endif %}">
|
||||
{{_item.name }} </a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<div class="hover-menu {% if _type == 'system' or _type == 'report' %}bottom{% endif %}">
|
||||
{% for _item in _menuArray %}
|
||||
<a href="{{ _item.url }}"
|
||||
class="flex items-center {% if _item.view == global.view and _item.module == global.module %}current {% endif %}">
|
||||
{{_item.name }} </a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="menu-list">
|
||||
<p style="color: #81B5E4;margin: 0 0 10px;font-weight: 700;padding: 0 16px;">TÀI KHOẢN</p>
|
||||
|
||||
<a href=""
|
||||
class="item flex items-center cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]">
|
||||
<i class="icons w-[20px] h-[20px] mr-[13px] icon-account"></i>
|
||||
<span class="title">Quản lý tài khoản </span>
|
||||
</a>
|
||||
<a href=""
|
||||
class="item flex items-center cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]">
|
||||
<i class="icons w-[20px] h-[20px] mr-[13px] icon-settings"></i>
|
||||
<span class="title"> Cài đặt </span>
|
||||
</a>
|
||||
|
||||
<a href=""
|
||||
class="item flex items-center cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]">
|
||||
<i class="icons w-[20px] h-[20px] mr-[13px] icon-support"></i>
|
||||
<span class="title"> Hỗ trợ </span>
|
||||
</a>
|
||||
|
||||
<a href=""
|
||||
class="item flex items-center cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]">
|
||||
<i class="icons w-[20px] h-[20px] mr-[13px] icon-account"></i>
|
||||
<span class="title"> Quản lý tài khoản </span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<a href=""
|
||||
class="item flex items-center cursor-pointer p-[0_12px] rounded-[4px] relative delay-300 transition-all bg-[#004e99] mb-[4px] leading-[36px]">
|
||||
<i class="icons w-[20px] h-[20px] mr-[13px] icon-logout"></i>
|
||||
<span class="title"> Thoát quản trị </span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Menu collapse -->
|
||||
@@ -226,7 +213,7 @@
|
||||
|
||||
</div> -->
|
||||
|
||||
<div class="admin-content-container ml-[50px]" id="js-admin-content-container">
|
||||
<div class="admin-content-container ml-[245px]" id="js-admin-content-container">
|
||||
<!-- Header -->
|
||||
<div class="admin-header-container flex items-center justify-between bg-white px-4 py-3">
|
||||
<form class="max-w-[420px] relative w-[100%] menu-hide" id="js-form-search">
|
||||
@@ -316,9 +303,6 @@
|
||||
</div>
|
||||
|
||||
<script src="{{ 'jquery.js' | asset_url }}"></script>
|
||||
<script src="{{ 'tailwindcss.js' | asset_url }}"></script>
|
||||
<script src="{{ 'fancybox.js' | asset_url }}"></script>
|
||||
<script src="{{ 'select2.js' | asset_url }}"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/datepicker.min.js"></script>
|
||||
<script src="/assets/typescript/main.js?v=1.111"></script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user