210 lines
13 KiB
HTML
210 lines
13 KiB
HTML
<div class="w-[100%] mb-[50px]">
|
|
|
|
<div class="text-sm breadcrumbs ml-[10px]">
|
|
<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>
|
|
</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="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>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex">
|
|
<div class="left w-[270px] mr-[10px]">
|
|
<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>
|
|
</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="form-control mb-[10px]">
|
|
<label class="font-[600] mb-[5px] text-[14px]">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)]">
|
|
</div>
|
|
|
|
<div class="form-control w-[100%] mb-[10px]">
|
|
<label class="flex items-center mb-[5px] text-[14px]">
|
|
<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
|
|
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)]">
|
|
</div>
|
|
|
|
<div class="form-control w-[100%] mb-[10px]">
|
|
<label class="flex items-center mb-[5px] text-[14px]">
|
|
<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 ý
|
|
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)]">
|
|
</textarea>
|
|
</div>
|
|
|
|
<div class="form-control w-[100%] mb-[10px]">
|
|
<label class="flex items-center mb-[5px] text-[14px]">
|
|
<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
|
|
?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)]">
|
|
</div>
|
|
|
|
<div class="form-control w-[100%] mb-[10px]">
|
|
<label class="flex items-center mb-[5px] text-[14px]">
|
|
<b>Thứ tự xuất hiện</b>
|
|
<span class="ml-[10px] italic text-[#6B7280] text-[13px]">(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)]">
|
|
</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]">
|
|
<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
|
|
sau</span>
|
|
</div>
|
|
<div class="check-form flex items-center mb-[10px]">
|
|
<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]">
|
|
<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]">
|
|
<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]">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex mb-[10px]">
|
|
<b class="w-[140px]">Phân loại</b>
|
|
<div>
|
|
<div class="check-form flex items-center mb-[10px]">
|
|
<input type="radio" name="info[scope]" value="0" checked="">
|
|
<label for="" class="ml-[25px] text-[#6B7280]">Local - Chỉ áp dụng cho một số loại Sản
|
|
phẩm</label>
|
|
</div>
|
|
<div class="check-form flex items-center mb-[10px]">
|
|
<input type="radio" name="info[scope]" value="1" checked="">
|
|
<label for="" class="ml-[25px] text-[#6B7280]">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)
|
|
</label>
|
|
</div>
|
|
</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>
|
|
|
|
</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
|
|
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>
|
|
<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)]">
|
|
</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>
|
|
<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)]">
|
|
</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>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div> |