This commit is contained in:
2025-12-10 08:37:47 +07:00
parent 699db96d26
commit 1afcb2364e
11 changed files with 379 additions and 396 deletions

View File

@@ -1,105 +1,94 @@
<div class="w-[100%] mb-[50px]">
<div class="text-sm breadcrumbs ml-[10px]">
<div class="w-full mb-[50px]">
<div class="text-sm breadcrumbs">
<ul>
<li><a href="/admin/product/collection">Danh sách bộ sưu tập</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>
</div>
<div class="w-[1140px] my-0 mx-auto">
<div class="bg-white p-[10px] rounded-[10px] shadow-[0_1px_1px_0px_#0000001A] my-[15px]">
<div class="w-7xl mx-auto">
<div class="bg-white p-3 rounded-sm shadow">
<div class="flex items-center justify-between">
<h1 class="text-[20px] font-[700]">Cập nhật bộ sưu tập Sản phẩm</h1>
<div class="flex items-center">
<a href="/admin/product/add_special_category=131"
class="flex items-center border-[1px] border-[#ECECEC] rounded-[4px] p-[5px_10px_5px_10px]">
<span
class="w-[14.5px] h-[14.5px] border-[1px] rounded-[50%] border-[#6B7280] text-center leading-[10.5px] mr-[5px] text-[#6B7280]">+</span>
<span class="text-[#6B7280]">Thêm sản phẩm</span>
<h1 class="text-xl font-bold">Cập nhật bộ sưu tập Sản phẩm</h1>
<div class="flex items-center gap-3">
<a href="/admin/product/add_special_category=131" class="btn btn-outline btn-sm btn-view">
<i data-lucide="plus" class="size-3"></i>
<span class="">Thêm sản phẩm</span>
</a>
<a href="/admin/product/collection_add"
class="flex items-center border-[1px] ml-[10px] border-[#ECECEC] rounded-[4px] p-[5px_10px_5px_10px]">
<span
class="w-[14.5px] h-[14.5px] border-[1px] rounded-[50%] border-[#6B7280] text-center leading-[10.5px] mr-[5px] text-[#6B7280]">+</span>
<span class="text-[#6B7280]">Thêm bộ sưu tập</span>
<a href="/admin/product/collection_add" class="btn btn-outline btn-sm btn-view">
<i data-lucide="plus" class="size-3"></i>
<span class="">Thêm bộ sưu tập</span>
</a>
</div>
</div>
<p class="text-gray-500">Flash Sale | Giảm Giá Cực Sốc !</p>
</div>
<div class="flex">
<div class="left w-[270px] mr-[10px]">
<div class="grid grid-cols-4 gap-5 mt-5">
<div class="left">
<div class="list-tab">
<a href="/admin/product/collection"
class="item block w-[100%] h-[36px] text-white bg-[#0041E8] rounded-[10px] text-[13px] leading-[35px] px-[20px]">Thông
class="item block w-full text-white bg-[#0041E8] rounded-sm text-base px-3 py-2 font-bold">Thông
tin</a>
</div>
</div>
<div class="right w-[860px]">
<div
class="bg-white p-[10px] rounded-[10px_10px_0_0] shadow-[0_-1px_1px_0px_#0000001A] border-b-[6px] border-[#FAFAFB]">
<b class="block text-[20px] font-bold">Thông tin cơ bản</b>
<div class="right col-span-3">
<div class="bg-white p-3 rounded-sm shadow">
<b class="block text-xl font-bold">Thông tin cơ bản</b>
<div class="flex items-center my-[15px]">
<p class="mr-[10px]">Ảnh icon</p>
<a href=""
class="flex items-center mr-[20px] border-[1px] border-[#0041E8] p-[8px_10px] rounded-[4px] bg-[#F5F7FF]">
<i class="fa-solid fa-arrow-up-from-bracket text-[#0041E8]"></i>
<span class="text-[#0041E8] ml-[5px]">Upload ảnh</span>
</a>
<div class="mt-5">
<b class="text-base">Ảnh icon</b>
<div id="image-brand" class="mt-5 w-full"></div>
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Đặt tên bộ sưu
<div class="mt-5">
<label for="" class="block font-bold text-base">Đặt tên bộ sưu
tập</label>
<input type="text" name="" value="" placeholder="Tên bộ sưu tập"
class="w-[100%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
class="w-full input input-md rounded-sm shadow mt-3" />
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Url Index</label>
<div class="mt-5">
<label for="" class="block font-bold text-base">Url Index</label>
<input type="text" name="" value="" placeholder="url index"
class="w-[50%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
class="input input-md rounded-sm shadow mt-3" />
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Miêu tả (Nếu
<div class="mt-5">
<label for="" class="block font-bold text-base mb-3">Miêu tả (Nếu
có)</label>
<textarea id="product-desc"> </textarea>
<textarea id="product-desc" class="mt-3"> </textarea>
</div>
</div>
<div class="bg-white p-[10px] mt-[5px]">
<b class="text-[20px] mb-[15px]">Dùng cho SEO</b>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Meta Title</label>
<div class="bg-white p-3 rounded-sm shadow mt-5">
<b class="text-xl">Dùng cho SEO</b>
<div class="mt-5">
<label for="" class="block font-bold text-base">Meta Title</label>
<input type="text" name="" value="" placeholder="Meta title"
class="w-[100%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
class="w-full input input-md rounded-sm shadow mt-3">
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Meta
<div class="mt-5">
<label for="" class="block font-bold text-base">Meta
keywords</label>
<input type="text" name="" value="" placeholder="Meta keywords"
class="w-[100%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
class="w-full input input-md rounded-sm shadow mt-3">
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Meta
<div class="mt-5">
<label for="" class="block font-bold text-base">Meta
Description</label>
<textarea type="text" name="" value="" placeholder="Meta Description"
class="w-[100%] input input-md input-bordered h-[100px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
class="w-full textarea rounded-sm shadow mt-3">
</textarea>
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Thứ tự xuất hiện
<div class="mt-5">
<label for="" class="block font-bold text-base">Thứ tự xuất hiện
<span class="text-[6b7280]">(cao xếp trước)</span></label>
<input type="text" name="" value="" placeholder="Thứ tự xuất hiện"
class="w-[50%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
class="input input-md rounded-sm shadow mt-3">
</div>
</div>
<div class="bg-white p-[10px] rounded-[0_0_10px_10px] shadow-[0_1px_1px_0px_#0000001A] mt-[10px]">
<input
class="btn w-[95px] h-[35px] min-h-[35px] bg-[#0041E8] rounded-[4px] mt-[10px] text-white cursor-pointer"
name="commit" type="submit" value="Cập nhật">
<div class="bg-white p-3 rounded-sm shadow mt-3">
<input class="btn btn-active" name="commit" type="submit" value="Cập nhật">
</div>
</div>
</div>