update
This commit is contained in:
@@ -38,3 +38,6 @@ const AdminFunction = (() => {
|
||||
}
|
||||
return { capNhatTrangThaiMenu: capNhatTrangThaiMenu, add_product_to_category: t, run_search: n, update_product_hot: o, checkForm: i, closeForm: r };
|
||||
})();
|
||||
|
||||
|
||||
new Choices("#group-select");
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
|
||||
<dialog id="js_list_reply_comment" class="modal">
|
||||
<div class="modal-box p-3">
|
||||
<div class="modal-box p-3 max-w-full">
|
||||
<form method="dialog">
|
||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
||||
</form>
|
||||
@@ -158,7 +158,7 @@
|
||||
<i class="iconify lucide--ban"></i>
|
||||
</a>
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide-trash-2"></i>
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
@@ -167,25 +167,22 @@
|
||||
<td>1</td>
|
||||
<td>09-08-2023, 11:24 am</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center gap-2">
|
||||
<b>Nguyễn An</b>
|
||||
<p
|
||||
class="p-[3px_4px] rounded-[2px] bg-[#FFCECE] ml-[5px] font-[500] text-[10px]">
|
||||
Quản trị
|
||||
<p class="badge badge-sm badge-primary badge-soft">Quản
|
||||
trị
|
||||
viên</p>
|
||||
</div>
|
||||
<p>annv@hurasoft.com</p>
|
||||
</td>
|
||||
<td>em sẽ tư vấn cụ thể cho chị nhé ạ</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<a href=""
|
||||
class="w-[30px] h-[30px] border-[1px] border-[#ECECEC] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px] mb-[5px]">
|
||||
<i class="fa-solid fa-ban text-[#9E9E9E]"></i>
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--ban"></i>
|
||||
</a>
|
||||
<a href=""
|
||||
class="w-[30px] h-[30px] border-[1px] border-[#ECECEC] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px] mb-[5px]">
|
||||
<i class="icons icon-remove text-[#9E9E9E]"></i>
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
@@ -194,16 +191,13 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="send-quick-feedback mt-[20px]">
|
||||
<b class="block text-[16px] mb-[10px]">Gửi phản hồi nhanh</b>
|
||||
<textarea name="" id=""
|
||||
class="w-[70%] h-[50px] p-[10px] border-[1px] border-[#D8D8D8] mb-[15px] rounded-[4px]"></textarea>
|
||||
<div class="send-quick-feedback mt-5">
|
||||
<b class="block text-base">Gửi phản hồi nhanh</b>
|
||||
<textarea name="" id="" class="textarea w-full mt-3 p-3 rounded-sm"></textarea>
|
||||
|
||||
<div class="flex items-center mt-[10px]">
|
||||
<input
|
||||
class="btn w-[56px] min-h-[32px] h-[32px] bg-[#0041E8] rounded-[4px] text-white cursor-pointer"
|
||||
name="commit" type="submit" value="Gửi">
|
||||
<p class="ml-[10px]">(* Bạn sẽ gửi phản hồi là Uyên Hura)</p>
|
||||
<div class="flex items-center mt-3 gap-3">
|
||||
<input class="btn btn-active" name="commit" type="submit" value="Gửi">
|
||||
<p class="">(* Bạn sẽ gửi phản hồi là Uyên Hura)</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
<div class="w-[100%]">
|
||||
<div class="m-[15px] p-[15px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)] overflow-x-auto">
|
||||
<h1 class="text-[24px] font-[700] mb-3">Khách hàng góp ý</h1>
|
||||
<div class="w-full">
|
||||
<div class="p-3 rounded-sm bg-white shadow overflow-x-auto">
|
||||
<h1 class="text-2xl font-bold mb-3">Khách hàng góp ý</h1>
|
||||
|
||||
<div class="flex items-center justify-end">
|
||||
<a href="/admin/customer/customer_add"
|
||||
class="block border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px]">
|
||||
<span
|
||||
class="inline-block w-[14px] h-[14px] border-[1px] rounded-[50%] border-[#0041E8] text-center leading-[11px] text-[#0041E8] mb-[2px]">+</span>
|
||||
<span class="text-[#0041E8] font-[500]">Thêm KH mới</span>
|
||||
<div class="flex items-center justify-end mt-5 gap-3">
|
||||
<a href="/admin/customer/customer_add" class="btn btn-outline btn-view">
|
||||
<i class="iconify lucide--pencil"></i>
|
||||
<span class="">Thêm KH mới</span>
|
||||
</a>
|
||||
<a href="admin/customer/customer-group"
|
||||
class="block border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px] ml-[10px]">
|
||||
<i class="fa-solid fa-user-group text-[#0041E8]"></i>
|
||||
<span class="text-[#0041E8] font-[500]">Các nhóm KH</span>
|
||||
<a href="admin/customer/customer-group" class="btn btn-outline btn-view">
|
||||
<i class="iconify lucide--users"></i>
|
||||
<span class="">Các nhóm KH</span>
|
||||
</a>
|
||||
<a href="admin/customer/customer-newsletter"
|
||||
class="block border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px] ml-[10px]">
|
||||
<i class="fa-solid fa-user-group text-[#0041E8]"></i>
|
||||
<span class="text-[#0041E8] font-[500]">KH nhận bản tin</span>
|
||||
<a href="admin/customer/customer-newsletter" class="btn btn-outline btn-view">
|
||||
<i class="iconify lucide--mail"></i>
|
||||
<span class="">KH nhận bản tin</span>
|
||||
</a>
|
||||
<a href="" class="block border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px] ml-[10px]">
|
||||
<i class="fa-regular fa-file-excel text-[#0041E8]"></i>
|
||||
<span class="text-[#0041E8] font-[500]">Các nhóm KH</span>
|
||||
<a href="" class="btn btn-outline btn-view">
|
||||
<i class="iconify lucide--file-x"></i>
|
||||
<span class="">Tải file excel</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="overflow-x-auto sm:whitespace-nowrap">
|
||||
<div class="overflow-x-auto sm:whitespace-nowrap mt-5 border-base-200 shadow rounded-sm">
|
||||
<table class="mt-[15px] table">
|
||||
<thead class="bg-[#F6F6F6] text-[#000] text-[14px]">
|
||||
<tr>
|
||||
<th class="w-[50px]">STT</th>
|
||||
<thead>
|
||||
<tr class="bg-base-200 font-bold text-black">
|
||||
<th>STT</th>
|
||||
<th>Họ tên</th>
|
||||
<th>Email</th>
|
||||
<th>Ngày đăng ký</th>
|
||||
<th>Thông tin khác</th>
|
||||
<th class="w-[90px]">Lựa chọn</th>
|
||||
<th>Lựa chọn</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -1,27 +1,26 @@
|
||||
<div class="w-[100%]">
|
||||
<div class="m-[15px] p-[15px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)]">
|
||||
<h1 class="text-[24px] font-[700] mb-3">Khách hàng góp ý</h1>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="w-full">
|
||||
<div class="p-3 rounded-sm bg-white shadow">
|
||||
<h1 class="text-2xl font-bold mb-3">Khách hàng góp ý</h1>
|
||||
<div class="flex items-center justify-between mt-5">
|
||||
<p>Tổng hợp các liên hệ của khách hàng từ form liên hệ trên trang <a href="/lien-he"
|
||||
class="text-[#0041E8] underline">liên hệ</a> của website</p>
|
||||
<select
|
||||
class="h-[30px] rounded-[4px] select select-bordered min-h-[30px] shadow-[0px_2px_4px_0px_#0000001F]">
|
||||
class="text-primary underline">liên hệ</a> của website</p>
|
||||
<select class="rounded-sm select select-bordered shadow w-48">
|
||||
<option value="">Lọc xem ý kiến</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="overflow-x-auto sm:whitespace-nowrap">
|
||||
<table class="table mt-[15px]">
|
||||
<thead class="bg-[#F6F6F6] text-[#000] text-[14px]">
|
||||
<tr>
|
||||
<th class="w-[50px]">STT</th>
|
||||
<div class="overflow-x-auto sm:whitespace-nowrap mt-5 border-base-200 shadow rounded-sm">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr class="bg-base-200 text-black font-bold">
|
||||
<th>STT</th>
|
||||
<th>Khách hàng</th>
|
||||
<th>Nội dung</th>
|
||||
<th class="w-[80px]">Lựa chọn</th>
|
||||
<th class="w-3 text-center mx-auto">Lựa chọn</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>3</td>
|
||||
<td>
|
||||
<p>huyth.c2hoangdieu.haugiang@gmail.com</p>
|
||||
<p>Trịnh Hoàng Huy</p>
|
||||
@@ -32,15 +31,14 @@
|
||||
<p>cửa hàng nên có thêm các dòng SSD Samsung 960 PRO và Samsung 960 EVO để có thêm nhiều lựa
|
||||
chọn</p>
|
||||
</td>
|
||||
<td>
|
||||
<a href=""
|
||||
class="w-[32px] m-[auto] h-[32px] rounded-[4px] text-center leading-[30px] flex items-center justify-center">
|
||||
<i class="icons icon-delete"></i>
|
||||
<td class="text-end">
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>3</td>
|
||||
<td>
|
||||
<p>huyth.c2hoangdieu.haugiang@gmail.com</p>
|
||||
<p>Trịnh Hoàng Huy</p>
|
||||
@@ -51,15 +49,14 @@
|
||||
<p>cửa hàng nên có thêm các dòng SSD Samsung 960 PRO và Samsung 960 EVO để có thêm nhiều lựa
|
||||
chọn</p>
|
||||
</td>
|
||||
<td>
|
||||
<a href=""
|
||||
class="w-[32px] m-[auto] h-[32px] rounded-[4px] text-center leading-[30px] flex items-center justify-center">
|
||||
<i class="icons icon-delete"></i>
|
||||
<td class="text-end">
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>3</td>
|
||||
<td>
|
||||
<p>huyth.c2hoangdieu.haugiang@gmail.com</p>
|
||||
<p>Trịnh Hoàng Huy</p>
|
||||
@@ -70,10 +67,9 @@
|
||||
<p>cửa hàng nên có thêm các dòng SSD Samsung 960 PRO và Samsung 960 EVO để có thêm nhiều lựa
|
||||
chọn</p>
|
||||
</td>
|
||||
<td>
|
||||
<a href=""
|
||||
class="w-[32px] m-[auto] h-[32px] rounded-[4px] text-center leading-[30px] flex items-center justify-center">
|
||||
<i class="icons icon-delete"></i>
|
||||
<td class="text-end">
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -91,59 +91,46 @@
|
||||
|
||||
|
||||
<dialog id="js_list_reply_comment" class="modal">
|
||||
<div class="modal-box w-[852px] max-w-5xl p-[15px]">
|
||||
<div class="modal-box p-3 max-w-full">
|
||||
<form method="dialog">
|
||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
||||
</form>
|
||||
<h2 class="text-[18px] uppercase font-bold border-b-[1px] pb-[5px]">Chi tiết phản hồi</h2>
|
||||
<h2 class="text-md uppercase font-bold mt-2">Chi tiết phản hồi</h2>
|
||||
|
||||
<div class="info-comment mt-[10px]">
|
||||
<b class="text-[16px] mb-[10px] block">Thông tin</b>
|
||||
<div class="flex items-center mb-[5px]">
|
||||
<p
|
||||
class="w-[120px] relative before:absolute before:content-[':'] before:right-[0] before:top-[0] before:text-[14px]">
|
||||
Khách
|
||||
hàng</p>
|
||||
<b class="ml-[5px]">Hura test</b>
|
||||
<div class="info-comment mt-2">
|
||||
<b class="text-base mb-2 block">Thông tin</b>
|
||||
<div class="grid grid-cols-4 items-center gap-2 mt-2">
|
||||
<p class="">Khách hàng:</p>
|
||||
<b class="col-span-3">Hura test</b>
|
||||
</div>
|
||||
<div class="flex items-center mb-[5px]">
|
||||
<p
|
||||
class="w-[120px] relative before:absolute before:content-[':'] before:right-[0] before:top-[0] before:text-[14px]">
|
||||
Email</p>
|
||||
<p class="ml-[5px]">test@mail.com</p>
|
||||
<div class="grid grid-cols-4 items-center gap-2 mt-2">
|
||||
<p class="">Email:</p>
|
||||
<p class="col-span-3">test@mail.com</p>
|
||||
</div>
|
||||
<div class="flex items-center mb-[5px]">
|
||||
<p
|
||||
class="w-[120px] relative before:absolute before:content-[':'] before:right-[0] before:top-[0] before:text-[14px]">
|
||||
Tiêu đề</p>
|
||||
<p class="ml-[5px]">Màn Hình Máy Tính LG 27UL850 27Inch 4K IPS</p>
|
||||
<div class="grid grid-cols-4 items-center gap-2 mt-2">
|
||||
<p class="">Tiêu đề:</p>
|
||||
<p class="col-span-3">Màn Hình Máy Tính LG 27UL850 27Inch 4K IPS</p>
|
||||
</div>
|
||||
<div class="flex items-center mb-[5px]">
|
||||
<p
|
||||
class="w-[120px] relative before:absolute before:content-[':'] before:right-[0] before:top-[0] before:text-[14px]">
|
||||
Nội dung</p>
|
||||
<p class="ml-[5px]">test reply</p>
|
||||
<div class="grid grid-cols-4 items-center gap-2 mt-2">
|
||||
<p class="">Nội dung:</p>
|
||||
<p class="col-span-3">test reply</p>
|
||||
</div>
|
||||
<div class="flex items-center mb-[5px]">
|
||||
<p
|
||||
class="w-[120px] relative before:absolute before:content-[':'] before:right-[0] before:top-[0] before:text-[14px]">
|
||||
Thời gian</p>
|
||||
<p class="ml-[5px]">20-04-2023, 1:36 pm</p>
|
||||
<div class="grid grid-cols-4 items-center gap-2 mt-2">
|
||||
<p class="">Thời gian:</p>
|
||||
<p class="col-span-3">20-04-2023, 1:36 pm</p>
|
||||
</div>
|
||||
<div class="flex items-center mb-[5px]">
|
||||
<p
|
||||
class="w-[120px] relative before:absolute before:content-[':'] before:right-[0] before:top-[0] before:text-[14px]">
|
||||
Liên quan</p>
|
||||
<p class="ml-[5px]">[product] <a href="" class="text-[#0041E8]">Màn Hình Máy Tính LG 27UL850
|
||||
<div class="grid grid-cols-4 items-center gap-2 mt-2">
|
||||
<p class="">Liên quan:</p>
|
||||
<p class="col-span-3">[product] <a href="" class="text-primary">Màn Hình Máy Tính LG 27UL850
|
||||
27Inch 4K IPS</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-reply mt-[20px]">
|
||||
<div class="info-reply mt-5 rounded-sm shadow">
|
||||
<b class="text-[16px] block mb-[10px]">Phản hồi <span>2</span></b>
|
||||
<table class="list-info-reply">
|
||||
<table class="table table-zebra w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr class="bg-base-200 text-black font-bold">
|
||||
<th>STT</th>
|
||||
<th>Thời gian</th>
|
||||
<th>Tác giả</th>
|
||||
@@ -156,25 +143,22 @@
|
||||
<td>1</td>
|
||||
<td>09-08-2023, 11:24 am</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center gap-2">
|
||||
<b>Nguyễn An</b>
|
||||
<p
|
||||
class="p-[3px_4px] rounded-[2px] bg-[#FFCECE] ml-[5px] font-[500] text-[10px]">
|
||||
Quản trị
|
||||
<p class="badge badge-sm badge-primary badge-soft">Quản
|
||||
trị
|
||||
viên</p>
|
||||
</div>
|
||||
<p>annv@hurasoft.com</p>
|
||||
</td>
|
||||
<td>em sẽ tư vấn cụ thể cho chị nhé ạ</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<a href=""
|
||||
class="w-[30px] h-[30px] border-[1px] border-[#ECECEC] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px] mb-[5px]">
|
||||
<i class="fa-solid fa-ban text-[#9E9E9E]"></i>
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--ban"></i>
|
||||
</a>
|
||||
<a href=""
|
||||
class="w-[30px] h-[30px] border-[1px] border-[#ECECEC] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px] mb-[5px]">
|
||||
<i class="icons icon-remove text-[#9E9E9E]"></i>
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
@@ -183,25 +167,22 @@
|
||||
<td>1</td>
|
||||
<td>09-08-2023, 11:24 am</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center gap-2">
|
||||
<b>Nguyễn An</b>
|
||||
<p
|
||||
class="p-[3px_4px] rounded-[2px] bg-[#FFCECE] ml-[5px] font-[500] text-[10px]">
|
||||
Quản trị
|
||||
<p class="badge badge-sm badge-primary badge-soft">Quản
|
||||
trị
|
||||
viên</p>
|
||||
</div>
|
||||
<p>annv@hurasoft.com</p>
|
||||
</td>
|
||||
<td>em sẽ tư vấn cụ thể cho chị nhé ạ</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<a href=""
|
||||
class="w-[30px] h-[30px] border-[1px] border-[#ECECEC] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px] mb-[5px]">
|
||||
<i class="fa-solid fa-ban text-[#9E9E9E]"></i>
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--ban"></i>
|
||||
</a>
|
||||
<a href=""
|
||||
class="w-[30px] h-[30px] border-[1px] border-[#ECECEC] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px] mb-[5px]">
|
||||
<i class="icons icon-remove text-[#9E9E9E]"></i>
|
||||
<a href="" class="btn btn-soft btn-xs btn-square btn-error">
|
||||
<i class="iconify lucide--trash-2"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
@@ -210,16 +191,13 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="send-quick-feedback mt-[20px]">
|
||||
<b class="block text-[16px] mb-[10px]">Gửi phản hồi nhanh</b>
|
||||
<textarea name="" id=""
|
||||
class="w-[70%] h-[50px] p-[10px] border-[1px] border-[#D8D8D8] mb-[15px] rounded-[4px]"></textarea>
|
||||
<div class="send-quick-feedback mt-5">
|
||||
<b class="block text-base">Gửi phản hồi nhanh</b>
|
||||
<textarea name="" id="" class="textarea w-full mt-3 p-3 rounded-sm"></textarea>
|
||||
|
||||
<div class="flex items-center mt-[10px]">
|
||||
<input
|
||||
class="btn w-[56px] min-h-[32px] h-[32px] bg-[#0041E8] rounded-[4px] text-white cursor-pointer"
|
||||
name="commit" type="submit" value="Gửi">
|
||||
<p class="ml-[10px]">(* Bạn sẽ gửi phản hồi là Uyên Hura)</p>
|
||||
<div class="flex items-center mt-3 gap-3">
|
||||
<input class="btn btn-active" name="commit" type="submit" value="Gửi">
|
||||
<p class="">(* Bạn sẽ gửi phản hồi là Uyên Hura)</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
tinymce.init({
|
||||
selector: 'textarea#product-desc',
|
||||
height: 350,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="w-[80%] m-auto mt-5">
|
||||
<div class="container m-auto mt-5">
|
||||
|
||||
<div class="bg-white p-3 rounded-sm shadow">
|
||||
<div class="flex items-center justify-between">
|
||||
@@ -26,8 +26,6 @@
|
||||
<span class="text-primary">{{ page.product_info.title }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="grid grid-cols-4 gap-5 mt-5">
|
||||
<div class="left">
|
||||
<div class="bg-white rounded-md shadow overflow-hidden menu-form">
|
||||
|
||||
@@ -2,23 +2,54 @@
|
||||
<h1 class="text-2xl font-bold mb-3">Danh sách sản phẩm ({{ page.total | format_number }})</h1>
|
||||
<div class="flex flex-wrap justify-between items-center">
|
||||
<div class="btn-left flex items-center mb-3 gap-3">
|
||||
<a href="javascript:void(0)" onclick="js_list_category.showModal()" class="btn btn-outline btn-view">
|
||||
Chọn danh mục để xem
|
||||
</a>
|
||||
<a href="javascript:void(0)" onclick="js_list_brand.showModal()" class="btn btn-outline btn-view">
|
||||
<div class="form-control w-48">
|
||||
<div class="dropdown dropdown-bottom w-full">
|
||||
<label tabindex="0" class="btn btn-view btn-sm btn-outline w-full flex justify-between">
|
||||
Chọn danh mục
|
||||
<i class="iconify lucide--chevron-down"></i>
|
||||
</label>
|
||||
|
||||
<ul tabindex="0" class="dropdown-content menu bg-white shadow-xl rounded-box w-80 mt-1 p-2">
|
||||
{% for cate in page.list_category %}
|
||||
{% if cate.children.size > 0 %}
|
||||
<li>
|
||||
<details>
|
||||
<summary><a href="{{cate.url}}">{{cate.title}}</a></summary>
|
||||
{% for cate2 in cate.children %}
|
||||
<ul>
|
||||
<li><a>{{cate2.title}}</a></li>
|
||||
{% if cate2.children.size > 0 %}
|
||||
<ul class="ml-4">
|
||||
{% for cate3 in cate2.children %}
|
||||
<li><a href="{{cate3.url}}">{{cate3.title}} ({{cate3.totalProduct}})</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{cate.url}}">{{cate.title}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<a href="javascript:void(0)" onclick="js_list_brand.showModal()" class="btn btn-outline btn-sm btn-view">
|
||||
Chọn thương hiệu để xem
|
||||
</a>
|
||||
</div>
|
||||
<div class="btn-right flex items-center mb-3 gap-3">
|
||||
<a href="/admin/product/form" class="btn btn-outline btn-view">
|
||||
<a href="/admin/product/form" class="btn btn-sm btn-outline btn-view">
|
||||
<i class="iconify lucide--plus"></i>
|
||||
<span>Thêm sản phẩm mới</span>
|
||||
</a>
|
||||
<a href="" class="btn btn-outline btn-view">
|
||||
<a href="" class="btn btn-outline btn-sm btn-view">
|
||||
<i class="iconify lucide--file-pdf"></i>
|
||||
<span class="ml-1">Danh sách cập nhật</span>
|
||||
</a>
|
||||
<a href="" class="btn btn-outline btn-view">
|
||||
<a href="" class="btn btn-outline btn-sm btn-view">
|
||||
<i class="iconify lucide--file-x"></i>
|
||||
<span class="ml-1">Cập nhật Excel</span>
|
||||
</a>
|
||||
@@ -112,7 +143,7 @@
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-2"
|
||||
onclick="AdminFunction.update_product_hot('{{item.id}}')">
|
||||
<input type="checkbox" name="new" {% if item.hot_type=="new" %}checked="checked" {% endif %}
|
||||
class="checkbox checkbox-success" />
|
||||
class="checkbox checkbox-success checkbox-sm" />
|
||||
<span class="label-text whitespace-nowrap">Mới Hot (Hỏi nhiều)</span>
|
||||
</label>
|
||||
|
||||
@@ -120,14 +151,14 @@
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-2"
|
||||
onclick="AdminFunction.update_product_hot('{{item.id}}')">
|
||||
<input type="checkbox" name="hot" {% if item.hot_type=="hot" %}checked="checked" {% endif %}
|
||||
class="checkbox checkbox-success" />
|
||||
class="checkbox checkbox-success checkbox-sm" />
|
||||
<span class="label-text whitespace-nowrap">Hot (Hỏi nhiều)</span>
|
||||
</label>
|
||||
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-2"
|
||||
onclick="AdminFunction.update_product_hot('{{item.id}}')">
|
||||
<input type="checkbox" name="bestsale" {% if item.hot_type=="bestsale" %}checked="checked"
|
||||
{% endif %} class="checkbox checkbox-success" />
|
||||
{% endif %} class="checkbox checkbox-success checkbox-sm" />
|
||||
<span class="label-text whitespace-nowrap">Bán
|
||||
chạy</span>
|
||||
</label>
|
||||
@@ -135,7 +166,7 @@
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-2"
|
||||
onclick="AdminFunction.update_product_hot('{{item.id}}')">
|
||||
<input type="checkbox" name="saleoff" {% if item.hot_type=="saleoff" %}checked="checked" {%
|
||||
endif %} class="checkbox checkbox-success" />
|
||||
endif %} class="checkbox checkbox-success checkbox-sm" />
|
||||
<span class="label-text whitespace-nowrap">Xả
|
||||
hàng (sale-off)</span>
|
||||
</label>
|
||||
@@ -143,7 +174,7 @@
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-2"
|
||||
onclick="AdminFunction.update_product_hot('{{item.id}}')">
|
||||
<input type="checkbox" name="online-only" {% if item.hot_type=="online-only"
|
||||
%}checked="checked" {% endif %} class="checkbox checkbox-success" />
|
||||
%}checked="checked" {% endif %} class="checkbox checkbox-success checkbox-sm" />
|
||||
<span class="label-text whitespace-nowrap">Chỉ bán online</span>
|
||||
</label>
|
||||
|
||||
@@ -202,6 +233,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<dialog id="js_list_category" class="modal">
|
||||
<div class="modal-box w-11/12 max-w-5xl">
|
||||
<form method="dialog">
|
||||
|
||||
Reference in New Issue
Block a user