update
This commit is contained in:
@@ -1,212 +1,214 @@
|
||||
<div class="w-[100%] mb-[50px]">
|
||||
<div class="w-full mb-10">
|
||||
|
||||
<div class="text-sm breadcrumbs ml-[10px]">
|
||||
<div class="text-sm breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/admin/product/attribute">Thuộc tính sản phẩm</a></li>
|
||||
<li class="text-[#0041E8]">Form thêm/sửa thuộc tính</li>
|
||||
<li class="text-active">Form thêm/sửa thuộc tính</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 mb-4 mt-5">
|
||||
<div class="flex items-center justify-between">
|
||||
<h1 class="text-[20px] font-[700]">Cập nhật thuộc tính sản phẩ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 thuộc tính mới</span>
|
||||
<h1 class="text-xl font-bold">Cập nhật thuộc tính sản phẩ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 thuộc tính mới</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex">
|
||||
<div class="left w-[270px] mr-[10px]">
|
||||
<div class="grid grid-cols-4 gap-5">
|
||||
<div class="left">
|
||||
<div class="list-tab">
|
||||
<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
|
||||
dung</a>
|
||||
<div class="list-tab">
|
||||
<a href="javascript:void(0)"
|
||||
class="item block w-full font-bold text-white bg-[#0041E8] rounded-sm text-base px-3 py-2">Nội
|
||||
dung</a>
|
||||
</div>
|
||||
</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="text-[20px] mb-[10px] block">Thông tin cơ bản</b>
|
||||
<div class="right col-span-3">
|
||||
<div class="bg-white p-3 rounded-sm shadow">
|
||||
<b class="text-xl block">Thông tin cơ bản</b>
|
||||
|
||||
<div class="form-control mb-[10px]">
|
||||
<label class="font-[600] mb-[5px] text-[14px]">Tên thuộc tính</label>
|
||||
<div class="form-control mt-5">
|
||||
<label class="font-bold text-base">Tên thuộc tính</label>
|
||||
<input type="text" size="60" name="info[title]" id="title" value="{{page.item_info.title}}"
|
||||
placeholder="Tên thuộc tính"
|
||||
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
|
||||
placeholder="Tên thuộc tính" class="w-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
|
||||
<div class="form-control w-[100%] mb-[10px]">
|
||||
<label class="flex items-center mb-[5px] text-[14px]">
|
||||
<div class="form-control w-full mt-5">
|
||||
<label class="flex items-center mb-1 text-base gap-3">
|
||||
<b>Mã nhận dạng cho quản trị</b>
|
||||
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">v.d. kich_thuoc_quan (không có dấu
|
||||
<span class="italic text-gray-500 text-xs">v.d. kich_thuoc_quan (không có dấu
|
||||
cách, không viết dấu của tiếng Việt)</span>
|
||||
</label>
|
||||
<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-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
|
||||
<div class="form-control w-[100%] mb-[10px]">
|
||||
<label class="flex items-center mb-[5px] text-[14px]">
|
||||
<div class="form-control mt-5">
|
||||
<label class="flex items-center mb-1 text-base gap-3">
|
||||
<b>Mô tả tóm tắt</b>
|
||||
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">(nếu muốn hiển thị và giải thích ý
|
||||
<span class="italic text-gray-500 text-xs">(nếu muốn hiển thị và giải thích ý
|
||||
nghĩa cho khách hàng)</span>
|
||||
</label>
|
||||
<textarea type="text" size="60" name="redirect_url" id="redirect_url" value="0"
|
||||
class="w-[100%] h-[120px] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
|
||||
class="w-full h-30 textarea rounded shadow-sm mt-3">
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-control w-[100%] mb-[10px]">
|
||||
<label class="flex items-center mb-[5px] text-[14px]">
|
||||
<div class="form-control mt-5">
|
||||
<label class="flex items-center mb-1 text-base gap-3">
|
||||
<b>Mã bộ lọc trên Url</b>
|
||||
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">v.d. cpu (trên link lọc
|
||||
<span class="italic text-gray-500 text-xs">v.d. cpu (trên link lọc
|
||||
?cpu=32Ghz&ram=32GB)
|
||||
</span>
|
||||
</label>
|
||||
<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-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
|
||||
<div class="form-control w-[100%] mb-[10px]">
|
||||
<label class="flex items-center mb-[5px] text-[14px]">
|
||||
<div class="form-control mt-5">
|
||||
<label class="flex items-center mb-1 text-base gap-3">
|
||||
<b>Thứ tự xuất hiện</b>
|
||||
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">(cao xếp trước)</span>
|
||||
<span class="italic text-gray-500 text-xs">(cao xếp trước)</span>
|
||||
</label>
|
||||
<input type="text" size="60" name="redirect_url" id="redirect_url" value="0"
|
||||
class="w-[45%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
|
||||
class="w-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
|
||||
<div class="flex mb-[10px]">
|
||||
<b class="w-[140px]">Lựa chọn áp dụng</b>
|
||||
<div class="">
|
||||
<div class="check-form flex items-center mb-[10px]">
|
||||
<div class="grid grid-cols-4 mt-5 gap-5">
|
||||
<b class="">Lựa chọn áp dụng</b>
|
||||
<div class="col-span-3">
|
||||
<label class="label flex items-center mb-2 gap-3">
|
||||
<input type="checkbox" name="change_url_on_update" value="1" checked
|
||||
class="checked:bg-[#0041E8] w-[18px] h-[18px] rounded-[4px]">
|
||||
<span class="ml-[10px] text-[#6B7280]">Dùng là tiêu đề nhóm cho các thuộc tính đứng
|
||||
class="checkbox checkbox-active checkbox-sm rounded-sm">
|
||||
<span class="">Dùng là tiêu đề nhóm cho các thuộc tính đứng
|
||||
sau</span>
|
||||
</div>
|
||||
<div class="check-form flex items-center mb-[10px]">
|
||||
</label>
|
||||
<label class="label flex items-center mb-2 gap-3">
|
||||
<input type="checkbox" name="change_url_on_update" value="1"
|
||||
class="checked:bg-[#0041E8] w-[18px] h-[18px] rounded-[4px]">
|
||||
<span class="ml-[10px] text-[#6B7280]">Dùng lọc Sản phẩm ở danh mục</span>
|
||||
</div>
|
||||
<div class="check-form flex items-center mb-[10px]">
|
||||
class="checkbox checkbox-active checkbox-sm rounded-sm">
|
||||
<span class="">Dùng lọc Sản phẩm ở danh mục</span>
|
||||
</label>
|
||||
<label class="label flex items-center mb-2 gap-3">
|
||||
<input type="checkbox" name="change_url_on_update" value="1"
|
||||
class="checked:bg-[#0041E8] w-[18px] h-[18px] rounded-[4px]">
|
||||
<span class="ml-[10px] text-[#6B7280]">Hiển thị ở thông tin tóm tắt Sản phẩm</span>
|
||||
</div>
|
||||
<div class="check-form flex items-center mb-[10px]">
|
||||
class="checkbox checkbox-active checkbox-sm rounded-sm">
|
||||
<span class="">Hiển thị ở thông tin tóm tắt Sản phẩm</span>
|
||||
</label>
|
||||
<label class="label flex items-center mb-2 gap-3">
|
||||
<input type="checkbox" name="change_url_on_update" value="1"
|
||||
class="checked:bg-[#0041E8] w-[18px] h-[18px] rounded-[4px]">
|
||||
<span class="ml-[10px] text-[#6B7280]">Hiển thị ở bảng thông số kỹ thuật</span>
|
||||
</div>
|
||||
<div class="check-form flex items-center mb-[10px]">
|
||||
class="checkbox checkbox-active checkbox-sm rounded-sm">
|
||||
<span class="">Hiển thị ở bảng thông số kỹ thuật</span>
|
||||
</label>
|
||||
<label class="label flex items-center mb-2 gap-3">
|
||||
<input type="checkbox" name="change_url_on_update" value="1"
|
||||
class="checked:bg-[#0041E8] w-[18px] h-[18px] rounded-[4px]">
|
||||
<span class="ml-[10px] text-[#6B7280]">Dùng để tạo các cấu hình của Sản phẩm</span>
|
||||
</div>
|
||||
class="checkbox checkbox-active checkbox-sm rounded-sm">
|
||||
<span class="">Dùng để tạo các cấu hình của Sản phẩm</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex mb-[10px]">
|
||||
<b class="w-[140px]">Phân loại</b>
|
||||
<div>
|
||||
<label class="cursor-pointer flex items-center mb-[10px]">
|
||||
<input type="radio" name="info[scope]" value="0" class="radio checked:bg-blue-500"
|
||||
<div class="grid grid-cols-4 mt-5 gap-5">
|
||||
<b class="">Phân loại</b>
|
||||
<div class="col-span-3">
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-3">
|
||||
<input type="radio" name="info[scope]" value="0" class="radio radio-active"
|
||||
checked="checked" />
|
||||
<span class="label-text ml-[25px] text-[#6B7280]">Local - Chỉ áp dụng cho một số loại
|
||||
<span class="label-text">Local - Chỉ áp dụng cho một số loại
|
||||
Sản
|
||||
phẩm</span>
|
||||
</label>
|
||||
|
||||
<label class="cursor-pointer flex items-center mb-[10px]">
|
||||
<input type="radio" name="info[scope]" value="1" class="radio checked:bg-blue-500" />
|
||||
<span class="label-text ml-[25px] text-[#6B7280]">Global - Áp dụng cho tất cả Sản phẩm
|
||||
<label class="cursor-pointer flex items-center mb-2 gap-3">
|
||||
<input type="radio" name="info[scope]" value="1" class="radio radio-active" />
|
||||
<span class="label-text">Global - Áp dụng cho tất cả Sản phẩm
|
||||
(v.d: Xuất xứ, Màu sắc, Bảo hành)</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-[10px]">
|
||||
<b class="text-[14px] mb-[10px] block text-[#383C44]">Thông tin cơ bản</b>
|
||||
<table class="mt-[15px] table-value">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>STT</th>
|
||||
<th>ID</th>
|
||||
<th>Giá trị</th>
|
||||
<th>Mô tả</th>
|
||||
<th>Thứ tự hiển thị</th>
|
||||
<th>Lựa chọn</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>4939</td>
|
||||
<td>Nam</td>
|
||||
<td class="w-[230px]"></td>
|
||||
<td class="w-[120px]">
|
||||
<input type="text" value="0" class="w-[120px]">
|
||||
</td>
|
||||
<td class="w-[85px]">
|
||||
<div class='list-btn flex items-center'>
|
||||
<a href=""
|
||||
class='w-[30px] h-[30px] border-[1px] border-[#0041E8] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px]'><i
|
||||
class='icons icon-edit'></i></a>
|
||||
<a href=""
|
||||
class='w-[30px] h-[30px] border-[1px] border-[#9E9E9E] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px]'><i
|
||||
class='icons icon-remove'></i></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="mt-5">
|
||||
<b class="text-base mb-2 block">Thông tin cơ bản</b>
|
||||
<div class="border border-gray-200 rounded-sm p-3 mt-3">
|
||||
<table class="table table-sm">
|
||||
<thead>
|
||||
<tr class="bg-base-200 font-bold text-black">
|
||||
<th>STT</th>
|
||||
<th>ID</th>
|
||||
<th>Giá trị</th>
|
||||
<th>Mô tả</th>
|
||||
<th>Thứ tự hiển thị</th>
|
||||
<th>Lựa chọn</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>4939</td>
|
||||
<td>Nam</td>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="text" value="0" class="w-12 input" />
|
||||
</td>
|
||||
<td class="w-[85px]">
|
||||
<div class='list-btn flex items-center gap-3'>
|
||||
<a href=""
|
||||
class='btn btn-soft btn-xs btn-square btn-outline btn-view'><i
|
||||
data-lucide="pencil" class='size-3'></i></a>
|
||||
<a href=""
|
||||
class='btn btn-soft btn-xs btn-square btn-outline btn-error'><i
|
||||
data-lucide="trash-2" class='size-3'></i></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="bg-white p-[10px]">
|
||||
<b class="text-[20px] block">Thêm giá trị mới</b>
|
||||
<span class="text-[#6B7280] italic">(**) Dùng để sắp xếp Sản phẩm theo thuộc tính khi cần (v.d. theo
|
||||
<div class="bg-white p-3 rounded-sm shadow mt-5">
|
||||
<b class="text-2xl block">Thêm giá trị mới</b>
|
||||
<span class="text-gray-500 italic mt-3">(**) Dùng để sắp xếp Sản phẩm theo thuộc tính khi cần (v.d.
|
||||
theo
|
||||
dung
|
||||
lượng ổ cứng laptop giảm
|
||||
dần)
|
||||
</span>
|
||||
<div class="flex justify-between mt-[10px]">
|
||||
<div class="form-control w-[30%] mb-[10px] mr-[6px]">
|
||||
<label class="font-[600] mb-[5px] text-[14px]">Tên (*)</label>
|
||||
<div class="mt-5 grid grid-cols-3 gap-5">
|
||||
<div class="form-control">
|
||||
<label class="font-bold mb-2 text-base">Tên (*)</label>
|
||||
<input type="text" size="60" name="info[title]" id="title" value="{{page.item_info.title}}"
|
||||
placeholder="Tên (*)"
|
||||
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
|
||||
placeholder="Tên (*)" class="w-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
<div class="form-control w-[30%] mb-[10px] mx-[6px]">
|
||||
<label class="font-[600] mb-[5px] text-[14px]">Giá trị sắp xếp (**)</label>
|
||||
<div class="form-control">
|
||||
<label class="font-base mb-2 text-base">Giá trị sắp xếp (**)</label>
|
||||
<input type="text" size="60" name="info[title]" id="title" value="{{page.item_info.title}}"
|
||||
placeholder="Giá trị sắp xếp"
|
||||
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]">
|
||||
placeholder="Giá trị sắp xếp" class="w-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
<div class="form-control w-[30%] mb-[10px] ml-[6px]">
|
||||
<label class="font-[600] mb-[5px] text-[14px]">STT</label>
|
||||
<input type="text" size="60" name="info[title]" id="title" value="{{page.item_info.title}}"
|
||||
placeholder="STT"
|
||||
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="flex items-end gap-3">
|
||||
<div class="form-control">
|
||||
<label class="font-base mb-2 text-base">STT</label>
|
||||
<input type="text" size="60" name="info[title]" id="title"
|
||||
value="{{page.item_info.title}}" placeholder="STT"
|
||||
class="w-full input rounded-sm shadow mt-3">
|
||||
</div>
|
||||
<a href="javascript:void(0)" class="btn btn-outline btn-view">Thêm
|
||||
mới</a>
|
||||
</div>
|
||||
<a href="javascript:void(0)"
|
||||
class="w-[80px] h-[33px] border-[1px] border-[#0041E8] text-center leading-[33px] rounded-[4px] text-[#0041E8] font-[500] ml-[10px] mt-[25px] hover:bg-[#0041E8] hover:text-white">Thêm
|
||||
mới</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="bg-white p-[10px] border-t-[6px] border-[#FAFAFB]">
|
||||
<input class="w-[82px] h-[32px] bg-[#0041E8] rounded-[4px] text-white cursor-pointer"
|
||||
id="submit-collection-btn" name="commit" type="submit" value="Cập nhật" />
|
||||
<div class="mt-5 bg-white p-3 rounded-sm shadow">
|
||||
<input class="btn btn-active" id="submit-collection-btn" name="commit" type="submit"
|
||||
value="Cập nhật" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user