This commit is contained in:
2025-12-09 11:13:40 +07:00
parent 9363b3bb4f
commit 699db96d26
15 changed files with 147 additions and 162 deletions

View File

@@ -3288,6 +3288,9 @@
.mb-4 { .mb-4 {
margin-bottom: calc(var(--spacing) * 4); margin-bottom: calc(var(--spacing) * 4);
} }
.mb-5 {
margin-bottom: calc(var(--spacing) * 5);
}
.mb-6 { .mb-6 {
margin-bottom: calc(var(--spacing) * 6); margin-bottom: calc(var(--spacing) * 6);
} }

View File

@@ -10,6 +10,7 @@
:root { :root {
--font-sans: "Inclusive Sans", sans-serif; --font-sans: "Inclusive Sans", sans-serif;
--text-base: 16px; --text-base: 16px;
--bg-body: #fafbfd;
--color-hura: #0041e8; --color-hura: #0041e8;
--color-header: #002bb5; --color-header: #002bb5;
--text-base--line-height: 1.5; --text-base--line-height: 1.5;
@@ -213,6 +214,7 @@
); );
transition-duration: var(--tw-duration, var(--default-transition-duration)); transition-duration: var(--tw-duration, var(--default-transition-duration));
flex-grow: 1; flex-grow: 1;
background: var(--bg-body);
} }
@layer hura { @layer hura {
@@ -255,4 +257,10 @@
.radio-active[aria-checked="true"]::before { .radio-active[aria-checked="true"]::before {
background-color: var(--color-hura); background-color: var(--color-hura);
} }
.link-active {
color: var(--color-hura);
}
.text-active {
color: var(--color-hura);
}
} }

View File

@@ -28,8 +28,8 @@ function get_category_list($parentId=0, $currentCat="",$level=1, $prefix="", $ca
$stt ++; $stt ++;
$imgUrl = (strlen($cat_info["thumbnail"]) > 2) ? " <img src=\"".$cat_info["thumbnail"]."\" style=\"max-width:30px; max-height:30px;\" />" : ""; $imgUrl = (strlen($cat_info["thumbnail"]) > 2) ? " <img src=\"".$cat_info["thumbnail"]."\" style=\"max-width:30px; max-height:30px;\" />" : "";
if($cat_info["status"]) $status = "<a href=\"javascript:update_status(".$cat_id.",'off')\" class='btn btn-soft btn-xs btn-outline btn-square'><i class='iconify lucide--eye-off'></i></a>"; if($cat_info["status"]) $status = "<a href=\"javascript:update_status(".$cat_id.",'off')\" class='btn btn-soft btn-xs btn-outline btn-square'><i data-lucide='eye-off' class='size-3'></i></a>";
else $status = "<a href=\"javascript:update_status(".$cat_id.",'on')\" class='btn btn-soft btn-xs btn-outline btn-square'><i class='iconify lucide--eye'></i></a>"; else $status = "<a href=\"javascript:update_status(".$cat_id.",'on')\" class='btn btn-soft btn-xs btn-outline btn-square'><i data-lucide='eye' class='size-3'></i></a>";
$edit_link ="/admin/product/category-form?id=".$cat_id; $edit_link ="/admin/product/category-form?id=".$cat_id;
@@ -42,7 +42,7 @@ function get_category_list($parentId=0, $currentCat="",$level=1, $prefix="", $ca
} }
if($cat_info['is_parent']) { if($cat_info['is_parent']) {
$show_category_name = "<a href=\"javascript:;\" class='link-primary' onclick=\"RowExpand.open_child('parent_".$cat_id."')\">".$show_category_name."</a>"; $show_category_name = "<a href=\"javascript:;\" class='link-active' onclick=\"RowExpand.open_child('parent_".$cat_id."')\">".$show_category_name."</a>";
} }
$categoryTree .= " $categoryTree .= "
@@ -50,17 +50,17 @@ function get_category_list($parentId=0, $currentCat="",$level=1, $prefix="", $ca
onmouseover=\"this.className='row-hover parent_".$parentId."'\" onmouseout=\"this.className='parent_".$parentId."'\"> onmouseover=\"this.className='row-hover parent_".$parentId."'\" onmouseout=\"this.className='parent_".$parentId."'\">
<td> <td>
<a class='link-primary' name='cat_".$cat_id."'></a> <a class='link-active' name='cat_".$cat_id."'></a>
". $extra_space . $prefix . $stt.". ". $show_category_name . $imgUrl." ". $extra_space . $prefix . $stt.". ". $show_category_name . $imgUrl."
</td> </td>
<td> <td>
<a href='".$cat_info['request_path']."' class='link-primary' title='Mở tại website' target='_blank'>Xem trang</a> <a href='".$cat_info['request_path']."' class='link-active' title='Mở tại website' target='_blank'>Xem trang</a>
</td> </td>
<td>".$cat_id."</td> <td>".$cat_id."</td>
<td class='whitespace-nowrap'>413787</td> <td class='whitespace-nowrap'>413787</td>
<td><a class='link-primary' href='/admin/product?category=".$cat_id."'>1292</a></td> <td><a class='link-active' href='/admin/product?category=".$cat_id."'>1292</a></td>
<td> <td>
<input class='input' type=text id=order_".$cat_id." value='".$cat_info["ordering"]."' size=2 onchange=\"update_order(".$cat_id.",this.value)\" /> <input class='input' type=text id=order_".$cat_id." value='".$cat_info["ordering"]."' size=2 onchange=\"update_order(".$cat_id.",this.value)\" />
<span class='status-ordering-".$cat_id."'></span> <span class='status-ordering-".$cat_id."'></span>
@@ -78,10 +78,10 @@ function get_category_list($parentId=0, $currentCat="",$level=1, $prefix="", $ca
</td> </td>
<td> <td>
<div class='list-btn flex items-center gap-3'> <div class='list-btn flex items-center gap-3'>
<a href=\"".$edit_link."\" class='btn btn-soft btn-xs btn-square btn-outline btn-view'><i class='iconify lucide--pencil'></i></a> <a href=\"".$edit_link."\" class='btn btn-soft btn-xs btn-square btn-outline btn-view'><i data-lucide='pencil' class='size-3'></i></a>
<a class='btn btn-soft btn-xs btn-square btn-outline btn-view' href='javascript:set_category_feature(.$cat_id.,'off')'><i class='iconify lucide--crown'></i></a> <a class='btn btn-soft btn-xs btn-square btn-outline btn-view' href='javascript:set_category_feature(.$cat_id.,'off')'><i data-lucide='crown' class='size-3'></i></a>
<span id=status-".$cat_id.">".$status."</span> <span id=status-".$cat_id.">".$status."</span>
<span class='status-delete-".$cat_id."'><a href=\"javascript:deleteThis(".$cat_id.")\" class='btn btn-soft btn-xs btn-square btn-error btn-outline '><i class='iconify lucide--trash-2'></i></a></span> <span class='status-delete-".$cat_id."'><a href=\"javascript:deleteThis(".$cat_id.")\" class='btn btn-soft btn-xs btn-square btn-error btn-outline '><i data-lucide='trash-2' class='size-3'></i></a></span>
</div> </div>
</td> </td>
"; ";
@@ -89,7 +89,7 @@ function get_category_list($parentId=0, $currentCat="",$level=1, $prefix="", $ca
}else{ }else{
$categoryTree .= " $categoryTree .= "
<td> <td>
<a href=\"".$edit_link."\"><i class='iconify lucide--pencil'></i></a> <a href=\"".$edit_link."\"><i data-lucide='pencil' class='size-3'></i></a>
</td> </td>
"; ";
} }

View File

@@ -1,6 +1,6 @@
<!-- Start: Dashboard Stats Widget --> <!-- Start: Dashboard Stats Widget -->
<div class="grid gap-5 grid-cols-12"> <div class="grid gap-3 grid-cols-12">
<div class="col-span-8"> <div class="col-span-8">
<div class="grid gap-3 lg:grid-cols-2 xl:grid-cols-4"> <div class="grid gap-3 lg:grid-cols-2 xl:grid-cols-4">
<div class="card bg-base-100 shadow"> <div class="card bg-base-100 shadow">

View File

@@ -1,5 +0,0 @@
<style>
/* homepage_css.html */
@layer components {}
</style>

View File

@@ -1,5 +0,0 @@
{% if global.module == 'home' %}
{% include module_css/homepage %}
{% endif %}

View File

@@ -1,15 +1,15 @@
<div class="bg-white shadow p-3 rounded-sm"> <div class="bg-white shadow p-3 rounded-sm">
<p class="text-2xl font-bold mb-3"> Danh sách mặc cả giá </p> <p class="text-2xl font-bold mb-3"> Danh sách mặc cả giá </p>
<div class="flex flex-wrap gap-3"> <div class="flex flex-wrap gap-3">
<a href="" class="btn btn-active"> <a href="" class="btn btn-active btn-md">
Chưa xử lý Chưa xử lý
</a> </a>
<a href="" class="btn"> <a href="" class="btn btn-md">
Thành công Thành công
</a> </a>
<a href="" class="btn"> <a href="" class="btn btn-md">
Hủy bỏ Hủy bỏ
</a> </a>
</div> </div>

View File

@@ -28,8 +28,8 @@
<a href="?opt=brand&amp;letter=X" class="link-primary">X</a> (1) | <a href="?opt=brand&amp;letter=X" class="link-primary">X</a> (1) |
<a href="?opt=brand&amp;letter=Z" class="link-primary">Z</a> (2) | <a href="?opt=brand&amp;letter=Z" class="link-primary">Z</a> (2) |
</div> </div>
<a href="/admin/product/brand_add" class="btn"> <a href="/admin/product/brand_add" class="btn btn-sm btn-active">
<i class="iconify lucide--plus"></i> <i data-lucide="plus" class="size-4"></i>
<span class="whitespace-nowrap ">Thêm thương hiệu mới</span> <span class="whitespace-nowrap ">Thêm thương hiệu mới</span>
</a> </a>
</div> </div>
@@ -54,7 +54,7 @@
<td>750</td> <td>750</td>
<td> <td>
<b>10MOONS</b> <b>10MOONS</b>
<p class="flex items-center link-primary gap-3"> <p class="flex items-center link-active gap-3">
<span>Link:</span> <span>Link:</span>
<a href="">/brand/10moons</a> <a href="">/brand/10moons</a>
</p> </p>
@@ -84,12 +84,13 @@
<td> <td>
<div class='list-btn flex items-center gap-3'> <div class='list-btn flex items-center gap-3'>
<a href="" class='btn btn-soft btn-xs btn-square btn-outline btn-view'><i <a href="" class='btn btn-soft btn-xs btn-square btn-outline btn-view'><i
class='iconify lucide--pencil'></i></a> data-lucide="pencil" class='size-3'></i></a>
<a class='btn btn-soft btn-xs btn-square btn-outline btn-view' href=''><i <a class='btn btn-soft btn-xs btn-square btn-outline btn-view' href=''><i
class='iconify lucide--crown'></i></a> data-lucide="crown" class='size-3'></i></a>
<a href="" class='btn btn-soft btn-xs btn-square '><i class="iconify lucide--eye"></i></a> <a href="" class='btn btn-soft btn-xs btn-square '><i data-lucide="eye"
class='size-3'></i></a>
<a href="" class='btn btn-soft btn-xs btn-square btn-outline btn-error'><i <a href="" class='btn btn-soft btn-xs btn-square btn-outline btn-error'><i
class='iconify lucide--trash'></i></a> data-lucide="trash-2" class='size-3'></i></a>
</div> </div>
</td> </td>
</tr> </tr>

View File

@@ -3,13 +3,13 @@
<div id="action-links" class="mt-3"> <div id="action-links" class="mt-3">
<div class="flex item-center justify-between"> <div class="flex item-center justify-between">
<div class="btn btn-outline btn-view"> <div class="btn btn-outline btn-view btn-sm">
<a href='javascript:;' onclick="RowExpand.open_all();"><span id='js-row-expand-all'></span> Xem hết <a href='javascript:;' onclick="RowExpand.open_all();"><span id='js-row-expand-all'></span> Xem hết
danh mục</a> danh mục</a>
</div> </div>
<a href="/admin/product/category-form" id="add-prod" class="btn btn-outline btn-view"> <a href="/admin/product/category-form " id="add-prod" class="btn btn-outline btn-view btn-sm">
<i class="iconify lucide--plus"></i> <i data-lucide="plus" class="size-4"></i>
<span class="font-[500]">Thêm <span class="font-500">Thêm
danh mục mới</span></a> danh mục mới</span></a>
</div> </div>
</div> </div>

View File

@@ -1,153 +1,136 @@
<div class="w-[100%] mb-[50px]"> <div class="w-full mb-5">
<div class="text-sm breadcrumbs ml-[10px]"> <div class="text-sm breadcrumbs mb-6">
<ul> <ul>
<li><a href="/admin/product">Danh sách sản phẩm</a></li> <li><a href="/admin/product">Danh sách sản phẩm</a></li>
<li class="text-[#0041E8]">Form thêm/sửa sản phẩm</li> <li class="text-active">Form thêm/sửa sản phẩm</li>
</ul> </ul>
</div> </div>
<div class="w-[1140px] my-0 mx-auto"> <div class="w-7xl mx-auto">
<div class="bg-white p-[10px] rounded-[10px] shadow-[0_1px_1px_0px_#0000001A] mb-[10px]"> <div class="bg-white p-3 rounded-sm shadow mb-6">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<h1 class="text-[20px] font-[700]">Cập nhật danh mục</h1> <h1 class="text-xl font-bold">Cập nhật danh mục</h1>
<a href="/admin/product/category-form" <a href="/admin/product/category-form" class="btn btn-sm btn-outline btn-active">
class="flex items-center border-[1px] border-[#ECECEC] rounded-[4px] p-[5px_10px_5px_10px]"> <i data-lucide="plus" class="size-4"></i>
<span <span class="">Thêm danh mục mới</span>
class="w-[14px] h-[14px] border-[1px] rounded-[50%] border-[#6B7280] text-center leading-[12px] mr-[5px] text-[#6B7280]">+</span>
<span class="text-[#6B7280]">Thêm danh mục mới</span>
</a> </a>
</div> </div>
</div> </div>
{% if page.update_status == 'success' %} {% if page.update_status == 'success' %}
<p class="update-success">Cập nhật thành công</p> <p class=" update-success">Cập nhật thành công</p>
{% endif %} {% endif %}
<div class="flex"> <div class="grid grid-cols-4 gap-5 mb-5">
<div class="left w-[270px] mr-[10px]"> <div class="left ">
<div class="list-tab"> <div class="list-tab">
<a href="javascript:void(0)" <a href="javascript:void(0)"
class="item block w-[100%] h-[36px] text-white bg-[#0041E8] rounded-[10px] text-[13px] leading-[35px] px-[10px]">Nội class="item block w-full h-[36px] text-white bg-[#0041E8] rounded-[10px] text-[13px] leading-[35px] px-[10px] font-bold">Nội
dung</a> dung</a>
</div> </div>
</div> </div>
<div class="right w-[860px]"> <div class="right col-span-3">
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
<input type=hidden name='info[id]' value='{{page.item_info.id}}' /> <input type=hidden name='info[id]' value='{{page.item_info.id}}' />
<div <div class="bg-white p-3 rounded-sm shadow mb-5">
class="bg-white p-[10px] rounded-[10px_10px_0_0] shadow-[0_-1px_1px_0px_#0000001A] border-b-[6px] border-[#FAFAFB]"> <b class="text-xl mb-3">Thông tin cơ bản</b>
<b class="text-[20px] mb-[10px]">Thông tin cơ bản</b>
<div class="form-control mb-[10px]"> <div class="form-control mt-5">
<label class="font-[600] mb-[5px] text-[14px]">Tên danh mục</label> <label class="font-bold text-base">Tên danh mục</label>
<input type="text" size="60" name="info[title]" id="title" value="{{page.item_info.title}}" <input type="text" size="60" name="info[title]" id="title" value="{{page.item_info.title}}"
placeholder="Tên danh mục" placeholder="Tên danh mục"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]"> class="w-full border border-[#d8d8d8] py-2 px-3 rounded-sm shadow mt-3">
</div> </div>
<div class="form-control mn-[10px]"> <div class="form-control mt-5">
<label class="font-[600] mb-[5px] text-[14px]">Từ khóa (tag,nếu có - nhập mỗi cụm từ 1 <label class="font-bold text-base block">Từ khóa (tag,nếu có - nhập
mỗi cụm từ 1
dòng)</label> dòng)</label>
<textarea type="text" size="60" name="info[tags]" id="tags" value="{{page.item_info.tags}}" <textarea type="text" size="60" name="info[tags]" id="tags" value="{{page.item_info.tags}}"
placeholder="tag" placeholder="tag" class="textarea w-full rounded-sm shadow mt-3"></textarea>
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] h-[120px]"></textarea>
</div> </div>
</div> </div>
<div class="bg-white p-[10px]"> <div class="bg-white p-3 rounded-sm shadow mb-5">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div> <div>
<b>Mô tả (nếu có)</b> <b>Mô tả (nếu có)</b>
</div> </div>
<div class="flex items-center"> <div class="flex items-center gap-3">
<a href="" class="p-[7px] rounded-[4px] border-[1px] border-[#0041E8] mr-[10px]"> <a href="" class="btn btn-sm btn-outline btn-view">
<i class="fa-solid fa-arrow-up-from-bracket text-[#0041E8]"></i> <i data-lucide="upload" class="size-4"></i>
<span class="pl-[3px] text-[#0041E8] font-[500]">Upload ảnh</span> <span class="">Upload ảnh</span>
</a> </a>
<a href="" class="p-[7px] rounded-[4px] border-[1px] border-[#0041E8] mr-[10px]"> <a href="" class="btn btn-sm btn-outline btn-view">
<i class="fa-regular fa-folder text-[#0041E8]"></i> <i data-lucide="folder" class="size-4"></i>
<span class="pl-[3px] text-[#0041E8] font-[500]">Quản lý</span> <span class="">Quản lý</span>
</a> </a>
<a href="" class="p-[7px] rounded-[4px] border-[1px] border-[#0041E8]"> <a href="" class="btn btn-sm btn-outline btn-view">
<i class="fa-regular fa-file-image text-[#0041E8]"></i> <i data-lucide="image" class="size-4"></i>
<span class="pl-[3px] text-[#0041E8] font-[500]">Chọn ảnh trong kho ảnh</span> <span class="">Chọn ảnh trong kho
ảnh</span>
</a> </a>
</div> </div>
</div> </div>
<p class="text-[#6B7280]">Chưa có thư viện ảnh cho phần miêu tả</p> <p class="text-gray-300">Chưa có thư viện ảnh cho phần miêu tả</p>
<div class="py-[10px]"> <div class="py-2">
<textarea id="product-desc"> </textarea> <textarea id="product-desc"> </textarea>
</div> </div>
<div class="flex justify-between mt-[20px]"> <div class="flex justify-between mt-3">
<div> <div>
<b class="font-[20px]">Nhập nội dung cố định (HTML)</b> <b class="font-[20px]">Nhập nội dung cố định (HTML)</b>
</div> </div>
<div class="flex items-center"> <div class="flex items-center gap-3">
<a href="" class="p-[7px] rounded-[4px] border-[1px] border-[#0041E8] mr-[10px]"> <a href="" class="btn btn-sm btn-outline btn-view">
<i class="fa-solid fa-arrow-up-from-bracket text-[#0041E8]"></i> <i data-lucide="upload" class="size-4"></i>
<span class="pl-[3px] text-[#0041E8] font-[500]">Upload ảnh</span> <span class="">Upload ảnh</span>
</a> </a>
<a href="" class="p-[7px] rounded-[4px] border-[1px] border-[#0041E8] mr-[10px]"> <a href="" class="btn btn-sm btn-outline btn-view">
<i class="fa-regular fa-folder text-[#0041E8]"></i> <i data-lucide="folder" class="size-4"></i>
<span class="pl-[3px] text-[#0041E8] font-[500]">Quản lý</span> <span class="">Quản lý</span>
</a> </a>
<a href="" class="p-[7px] rounded-[4px] border-[1px] border-[#0041E8]"> <a href="" class="btn btn-sm btn-outline btn-view">
<i class="fa-regular fa-file-image text-[#0041E8]"></i> <i data-lucide="image" class="size-4"></i>
<span class="pl-[3px] text-[#0041E8] font-[500]">Chọn ảnh trong kho ảnh</span> <span class="">Chọn ảnh trong kho
ảnh</span>
</a> </a>
</div> </div>
</div> </div>
<p class="text-[#6B7280]">Chưa có thư viện ảnh cho phần miêu tả</p> <p class="text-gray-300">Chưa có thư viện ảnh cho phần miêu tả</p>
<div class="py-[10px]"> <div class="py-[10px]">
<textarea id="product-static"> </textarea> <textarea id="product-static"> </textarea>
</div> </div>
<div class="flex items-center"> <div class="mt-3">
<b class="w-[85px] mr-[10px]">Ảnh icon</b> <b class="block mb-3">Ảnh icon</b>
<div class="input-file"> <div id="image-preview-filepond" class="mt-5 w-full"></div>
<input type="file" size="30" name="catThumnail" id="file_input" multiple
placeholder="No file selected">
<div class="title">
<div class="btn-input-file">
<i class="fa-solid fa-file-arrow-up"></i> Upload file
</div>
<span style="color:gray;font-style: italic;">No file chosen</span>
</div> </div>
<div class="mt-3">
<b class="block mb-3">Ảnh đại diện</b>
<div id="image-preview-filepond" class="mt-5 w-full"></div>
</div> </div>
</div> </div>
<div class="flex items-center mt-[15px] pb-[15px]"> <div class="bg-white p-3 rounded-sm shadow mb-5">
<b class="w-[85px] mr-[10px]">Ảnh đại diện</b> <b class="block text-xl mb-4">Thông tin danh mục</b>
<div class="input-file"> <div class="form-control mb-3">
<input type="file" size="30" name="category_image" id="file_input" multiple <label class="flex items-center mb-2 text-base">
placeholder="No file selected">
<div class="title">
<div class="btn-input-file">
<i class="fa-solid fa-file-arrow-up"></i> Upload file
</div>
<span style="color:gray;font-style: italic;">No file chosen</span>
</div>
</div>
</div>
</div>
<div class="bg-white p-[10px] border-t-[6px] border-[#FAFAFB]">
<b class="block text-[20px] mb-[15px]">Thông tin danh mục</b>
<div class="form-control mb-[10px]">
<label class="flex items-center mb-[5px] text-[14px]">
<b>Khoảng lọc giá</b> <b>Khoảng lọc giá</b>
<span class="ml-[10px] italic text-[#6B7280]">Nhập từng giá các nhau dấu;</span> <span class="ml-2 italic text-gray-500">Nhập từng giá các nhau
dấu;</span>
</label> </label>
<input type="text" size="60" name="priceRange" id="priceRange" <input type="text" size="60" name="priceRange" id="priceRange"
value="{{page.item_info.priceRange}}" value="{{page.item_info.priceRange}}"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]"> class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
<div class="note py-[10px] italic text-[#6B7280]"> <div class="note py-[10px] italic text-[#6B7280]">
<p>ví dụ: 300000;800000;1500000 có nghĩa là tạo ra 4 khoảng giá cho khách hàng lọc Sản <p>ví dụ: 300000;800000;1500000 có nghĩa là tạo ra 4 khoảng giá cho
khách hàng lọc Sản
phẩm, đó là:</p> phẩm, đó là:</p>
<p>- Dưới 300000,</p> <p>- Dưới 300000,</p>
<p>- Từ 300000 đến 800000,</p> <p>- Từ 300000 đến 800000,</p>
@@ -173,9 +156,11 @@
</label> </label>
<select name="display_option" id="display_option" <select name="display_option" id="display_option"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]"> class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
<option value="child_product" selected="selected">Hiển thị sản phẩm + Danh mục con <option value="child_product" selected="selected">Hiển thị sản phẩm
+ Danh mục con
</option>
<option value="category_as_product">Hiển thị như sản phẩm tổng hợp
</option> </option>
<option value="category_as_product">Hiển thị như sản phẩm tổng hợp</option>
</select> </select>
</div> </div>
</div> </div>
@@ -203,7 +188,8 @@
<div class="form-control w-[100%] my-[10px]"> <div class="form-control w-[100%] my-[10px]">
<label class="flex items-center mb-[5px] text-[14px]"> <label class="flex items-center mb-[5px] text-[14px]">
<b>Số Sản phẩm hiển thị</b> <b>Số Sản phẩm hiển thị</b>
<span class="ml-[10px] italic text-[#6B7280]">(để = 0 nếu mặc định theo hệ thống cài đặt <span class="ml-[10px] italic text-[#6B7280]">(để = 0 nếu mặc định theo
hệ thống cài đặt
chung) chung)
</span> </span>
</label> </label>
@@ -247,7 +233,8 @@
<div class="form-control w-[100%] mb-[10px]"> <div class="form-control w-[100%] mb-[10px]">
<label class="flex items-center mb-[5px] text-[14px]"> <label class="flex items-center mb-[5px] text-[14px]">
<b>Meta Title</b> <b>Meta Title</b>
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">51 ký tự , 10 từ</span> <span class="ml-[10px] italic text-[#6B7280] text-[13px]">51 ký tự , 10
từ</span>
</label> </label>
<input type="text" size="60" name="redirect_url" id="redirect_url" value="0" <input type="text" size="60" name="redirect_url" id="redirect_url" value="0"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]"> class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
@@ -255,7 +242,8 @@
<div class="form-control w-[100%] mb-[10px]"> <div class="form-control w-[100%] mb-[10px]">
<label class="flex items-center mb-[5px] text-[14px]"> <label class="flex items-center mb-[5px] text-[14px]">
<b>Meta Keywords</b> <b>Meta Keywords</b>
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">76 ký tự , 14 từ</span> <span class="ml-[10px] italic text-[#6B7280] text-[13px]">76 ký tự , 14
từ</span>
</label> </label>
<input type="text" size="60" name="redirect_url" id="redirect_url" value="0" <input type="text" size="60" name="redirect_url" id="redirect_url" value="0"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]"> class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
@@ -263,7 +251,8 @@
<div class="form-control w-[100%] mb-[10px]"> <div class="form-control w-[100%] mb-[10px]">
<label class="flex items-center mb-[5px] text-[14px]"> <label class="flex items-center mb-[5px] text-[14px]">
<b>Meta Description</b> <b>Meta Description</b>
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">142 ký tự , 28 từ (Khuyến <span class="ml-[10px] italic text-[#6B7280] text-[13px]">142 ký tự , 28
từ (Khuyến
nghị: 160 ký tự) * nếu để trống sẽ dùng tóm tắt danh mục</span> nghị: 160 ký tự) * nếu để trống sẽ dùng tóm tắt danh mục</span>
</label> </label>
<textarea name="" id="" cols="30" rows="10" <textarea name="" id="" cols="30" rows="10"
@@ -274,7 +263,8 @@
<b class="mr-[20px]">Thay đổi Link truy cập khi thay đổi Tên index?</b> <b class="mr-[20px]">Thay đổi Link truy cập khi thay đổi Tên index?</b>
<input type="checkbox" name="change_url_on_update" value="1" <input type="checkbox" name="change_url_on_update" value="1"
class="checkbox checked:bg-[#0041E8] w-[20px] h-[20px] [--chkbg:theme(#0041E8)] [--chkfg:white] rounded-[4px]"> class="checkbox checked:bg-[#0041E8] w-[20px] h-[20px] [--chkbg:theme(#0041E8)] [--chkfg:white] rounded-[4px]">
<span class="ml-[10px] text-[#6B7280]">Tích chọn để hiển thị hoặc dừng hiển thị</span> <span class="ml-[10px] text-[#6B7280]">Tích chọn để hiển thị hoặc dừng hiển
thị</span>
</div> </div>
</div> </div>

View File

@@ -3,30 +3,30 @@
<div class="bg-white p-3 rounded shadow"> <div class="bg-white p-3 rounded shadow">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<b class="text-xm">Các loại phụ kiện của sản phẩm</b> <b class="text-xm">Các loại phụ kiện của sản phẩm</b>
<a href="" class="btn btn-outline btn-view"> <a href="" class="btn btn-outline btn-view btn-sm">
Chọn Sản phẩm phụ kiện Chọn Sản phẩm phụ kiện
</a> </a>
</div> </div>
<div class="list-item-cate flex items-center flex-wrap mt-5 gap-3"> <div class="list-item-cate flex items-center flex-wrap mt-5 gap-3">
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
PC, Workstation PC, Workstation
</a> </a>
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
CPU - Bộ Vi Xử Lý CPU - Bộ Vi Xử Lý
</a> </a>
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
Mainboard - Bo Mạch Chủ Mainboard - Bo Mạch Chủ
</a> </a>
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
VGA - Card Màn Hình VGA - Card Màn Hình
</a> </a>
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
PC, Workstation PC, Workstation
</a> </a>
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
PC, Workstation PC, Workstation
</a> </a>
<a href="" class="btn btn-outline btn-dash btn-gray"> <a href="" class="btn btn-outline btn-dash btn-gray btn-sm">
PC, Workstation PC, Workstation
</a> </a>
</div> </div>
@@ -69,7 +69,7 @@
</td> </td>
<td> <td>
<a href="" class="btn btn-xs btn-outline btn-error"> <a href="" class="btn btn-xs btn-outline btn-error">
<i class="iconify lucide--trash-2"></i> <i data-lucide="trash-2" class="size-3 text-red-500"></i>
</a> </a>
</td> </td>
</tr> </tr>
@@ -110,7 +110,7 @@
</td> </td>
<td> <td>
<a href="" class="btn btn-xs btn-outline btn-error"> <a href="" class="btn btn-xs btn-outline btn-error">
<i class="iconify lucide--trash-2"></i> <i data-lucide="trash-2" class="size-3 text-red-500"></i>
</a> </a>
</td> </td>
</tr> </tr>

View File

@@ -2,26 +2,26 @@
<div class="bg-white p-3 rounded-sm shadow"> <div class="bg-white p-3 rounded-sm shadow">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<b class="text-xl">Danh sách tag</b> <b class="text-xl">Danh sách tag</b>
<a href="/admin/product" class="btn btn-view btn-outline"> <a href="/admin/product" class="btn btn-view btn-outline btn-sm">
<span class=""> <span class="">
Chọn tag cho sản phẩm Chọn tag cho sản phẩm
</span> </span>
</a> </a>
</div> </div>
<div class="border-base-200 border rounded mt-5"> <div class="border-base-300 border rounded mt-5">
<table class="table"> <table class="table">
<tr class="bg-base-200 font-bold text-black"> <tr class="bg-base-200 font-bold text-black">
<th>STT</th> <th>STT</th>
<th class="text-center">Tag</th> <th class="text-center">Tag</th>
<th></th> <th class="w-2"></th>
</tr> </tr>
<tr> <tr>
<td>1</td> <td>1</td>
<td>ATO Test</td> <td>ATO Test</td>
<td> <td>
<a href="" class="btn btn-xs btn-outline btn-error"> <a href="" class="btn btn-xs btn-outline btn-error">
<i class="iconify lucide--trash-2"></i> <i data-lucide="trash-2" class="size-3"></i>
</a> </a>
</td> </td>
</tr> </tr>

View File

@@ -3,8 +3,8 @@
<div class="bg-white rounded-md shadow p-3"> <div class="bg-white rounded-md shadow p-3">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<b class="text-xl">Chủng loại của sản phẩm</b> <b class="text-xl">Chủng loại của sản phẩm</b>
<a href="" class="btn btn-outline btn-view"> <a href="" class="btn btn-outline btn-view btn-sm">
<i class="iconify lucide--pencil"></i> <i data-lucide="pencil" class="size-4"></i>
<span class=""> <span class="">
Sửa thuộc tính Sửa thuộc tính
</span> </span>
@@ -114,10 +114,10 @@
<td class="align-text-top"> <td class="align-text-top">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<a href="" class="btn btn-xs btn-outline btn-view"> <a href="" class="btn btn-xs btn-outline btn-view">
<i class="iconify lucide--eye"></i> <i data-lucide="eye" class="size-3"></i>
</a> </a>
<a href="" class="btn btn-xs btn-outline btn-error"> <a href="" class="btn btn-xs btn-outline btn-error">
<i class="iconify lucide--trash-2"></i> <i data-lucide="trash-2" class="size-3 text-red-500"></i>
</a> </a>
</div> </div>
@@ -128,8 +128,8 @@
</div> </div>
<a href="" class="mt-5 flex items-center gap-1 justify-center"> <a href="" class="mt-5 flex items-center gap-1 justify-center">
<span class="iconify lucide--circle-plus link-primary"></span> <span data-lucide="plus-circle" class="size-4 text-active"></span>
<span class="link-primary">Thêm chủng loại</span> <span class="link-active">Thêm chủng loại</span>
</a> </a>
</div> </div>
<div class="bg-white p-3 rounded shadow mt-5"> <div class="bg-white p-3 rounded shadow mt-5">

View File

@@ -22,7 +22,7 @@
</td> </td>
<td> <td>
<a href="" class="btn btn-xs btn-outline btn-error"> <a href="" class="btn btn-xs btn-outline btn-error">
<i class="iconify lucide--trash-2"></i> <i data-lucide="trash-2" class="size-3 text-red-500"></i>
</a> </a>
</td> </td>
</tr> </tr>
@@ -31,8 +31,8 @@
<a href="" class="mt-5 flex items-center gap-1 justify-center"> <a href="" class="mt-5 flex items-center gap-1 justify-center">
<span class="iconify lucide--circle-plus link-primary"></span> <span data-lucide="plus-circle" class="size-4 link-active"></span>
<span class="link-primary">Thêm chủng loại</span> <span class="link-active">Thêm chủng loại</span>
</a> </a>
</div> </div>
<div class="bg-white p-3 rounded shadow mt-3"> <div class="bg-white p-3 rounded shadow mt-3">

View File

@@ -13,15 +13,10 @@
<!-- hura global css --> <!-- hura global css -->
<link rel="stylesheet" href="{{ 'hura.global.css' | asset_url }}" /> <link rel="stylesheet" href="{{ 'hura.global.css' | asset_url }}" />
<!-- page-specific CSS -->
{% include module_css/index %}
</head> </head>
<body> <body>
<div class="size-full">
<div class="flex h-screen min-w-0 grow flex-col overflow-auto"> <div class="flex h-screen min-w-0 grow flex-col overflow-auto">
@@ -38,8 +33,6 @@
</footer> </footer>
</div> </div>
</div>
{% include javascript/index %} {% include javascript/index %}
</body> </body>