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,90 +1,84 @@
<div class="w-[100%] mb-[50px]">
<div class="w-full mb-[50px]">
<div class="text-sm breadcrumbs ml-[10px]">
<div class="text-sm breadcrumbs">
<ul>
<li><a href="/admin/product/addon">SP/ Dịch vụ bán kèm sản phẩm</a></li>
<li class="text-[#0041E8]">Form sửa SP/ Dịch vụ bán kèm</li>
<li class="text-active">Form sửa SP/ Dịch vụ bán kè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] mb-[15px]">
<div class="w-7xl mx-auto">
<div class="bg-white p-3 rounded-sm shadow mt-5">
<div class="flex items-center justify-between">
<h1 class="text-[20px] font-[700]">Cập nhật SP/ Dịch vụ bán kèm</h1>
<a href="/admin/product/attribute-add"
class="flex items-center border-[1px] border-[#ECECEC] rounded-[4px] p-[5px_10px_5px_10px]">
<span
class="w-[14px] h-[14px] border-[1px] rounded-[50%] border-[#6B7280] text-center leading-[11px] mr-[5px] text-[#6B7280]">+</span>
<span class="text-[#6B7280]">Thêm dịch vụ mới</span>
<h1 class="text-xl font-bold">Cập nhật SP/ Dịch vụ bán kèm</h1>
<a href="/admin/product/attribute-add" class="btn btn-outline btn-sm btn-view">
<i data-lucide="plus" class="size-3"></i>
<span class="">Thêm dịch vụ mới</span>
</a>
</div>
</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/addon_add"
class="item block w-[100%] h-[36px] text-white bg-[#0041E8] rounded-[10px] text-[13px] leading-[35px] px-[20px]">Nội
class="item block w-full text-white bg-[#0041E8] rounded-sm text-base px-3 py-2 font-bold">Nội
dung</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] mb-[23px]">Thông tin sản phẩm</b>
<div class="right col-span-3">
<div class="bg-white p-3 rounded-sm shadow">
<b class="block text-xl">Thông tin sản phẩm</b>
<div class="mb-[25px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Tên dịch vụ</label>
<div class="mt-5">
<label for="" class="block font-bold">Tên dịch vụ</label>
<input type="text" name="info[warranty]" id="warranty" value="Test"
placeholder="Thông tin bảo hành"
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]">
placeholder="Thông tin bảo hành" class="w-full input input-md rounded-sm shadow mt-3">
</div>
<div class="mb-[25px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Mô tả</label>
<textarea id="product-desc"> </textarea>
<div class="mt-5">
<label for="" class="block font-bold mb-3">Mô tả</label>
<textarea id="product-desc" class="mt-3"> </textarea>
</div>
<div class="mb-[25px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Ghi chú (dành cho
<div class="mt-5">
<label for="" class="block font-bold">Ghi chú (dành cho
quản trị)</label>
<input type="text" name="info[warranty]" id="warranty" value="Test"
placeholder="Thông tin bảo hành"
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]">
placeholder="Thông tin bảo hành" class="w-full input input-md rounded-sm shadow mt-3">
</div>
<div class="grid grid-cols-2 gap-[15px]">
<div class="grid grid-cols-2 gap-3 mt-5">
<div>
<label for="" class=" block mb-[10px] font-[700] text-[14px] text-[#383C44]">Giá</label>
<label for="" class=" block font-bold">Giá</label>
<input type="text" name="" value="0" placeholder="Giá"
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>
<label for="" class=" block mb-[10px] font-[700] text-[14px] text-[#383C44]">Thứ tự hiển
<label for="" class=" block font-bold ">Thứ tự hiển
thị</label>
<input type="text" name="" value="1" placeholder="Thứ tự hiển thị"
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]">
<input type="text" name="" value="0" placeholder="Giá"
class="w-full input input-md rounded-sm shadow mt-3" />
</div>
</div>
<div class="flex items-center mt-[15px]">
<b class="mr-[40px]">Hiển thị</b>
<label class="cursor-pointer flex items-center mr-[40px]">
<input type="radio" name="info[status]" value="0" class="radio checked:bg-blue-500"
<div class="flex items-center mt-5 gap-5">
<b class="">Hiển thị</b>
<label class="cursor-pointer flex items-center gap-3">
<input type="radio" name="info[status]" value="0" class="radio radio-active radio-sm"
checked="checked" />
<span class="label-text ml-[10px]">Cho hiển thị</span>
<span class="label-text">Cho hiển thị</span>
</label>
<label class="cursor-pointer flex items-center">
<input type="radio" name="info[status]" value="0" class="radio checked:bg-blue-500"
<label class="cursor-pointer flex items-center gap-3">
<input type="radio" name="info[status]" value="0" class="radio radio-active radio-sm"
checked="checked" />
<span class="label-text ml-[10px]">Ẩn hiển thị</span>
<span class="label-text">Ẩn hiển thị</span>
</label>
</div>
</div>
<div class="bg-white p-[10px] rounded-[0_0_10px_10px] shadow-[0_1px_1px_0px_#0000001A] mt-[5px]">
<div class="bg-white p-3 rounded-sm shadow mt-5">
<input type="hidden" name="create" value="yes" />
<input name="commit" type="submit" value="Cập nhật"
class="inline-block mt-[12px] cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
<input name="commit" type="submit" value="Cập nhật" class="btn btn-active" />
</div>
</div>
</div>