2025-12-02 09:30:52 +07:00
|
|
|
<div class="breadcrumbs tw-zab tw-zpa tw-iia">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="/admin/product" data-discover="true">Danh sách sản phẩm</a></li>
|
|
|
|
|
<li class="">Form thêm/sửa sản phẩm</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="w-[80%] m-auto mt-5">
|
|
|
|
|
|
|
|
|
|
<div class="bg-white p-3 rounded-sm shadow">
|
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
|
<div>
|
|
|
|
|
<h1 class="text-xl font-bold">Cập nhật #{{ page.product_info.id }}</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center gap-3">
|
|
|
|
|
<a href="/admin/product/product-add" class="btn btn-md btn-outline btn-view">
|
|
|
|
|
<i class="iconify lucide--circle-plus"></i>
|
|
|
|
|
<span class="">Thêm sp mới</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="javascript:void(0)" class="btn btn-md btn-outline btn-view">
|
|
|
|
|
<div class="iconify lucide--copy"></div>
|
|
|
|
|
<span class="text-[#6B7280] ml-[5px]">Tạo sp tương tự</span>
|
|
|
|
|
</a>
|
2024-05-06 15:55:58 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-12-02 09:30:52 +07:00
|
|
|
<span class="text-primary">{{ page.product_info.title }}</span>
|
|
|
|
|
</div>
|
2024-05-06 15:55:58 +07:00
|
|
|
|
|
|
|
|
|
2024-01-18 23:13:02 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
<div class="grid grid-cols-4 gap-5 mt-5">
|
|
|
|
|
<div class="left">
|
|
|
|
|
<div class="bg-white rounded-md shadow overflow-hidden menu-form">
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% for _menu in page.product_menu %}
|
|
|
|
|
<a role="tab" href="/admin/product/form?id={{ page.product_info.id }}&part={{ _menu.id }}"
|
|
|
|
|
title="{{ _menu.name }}"
|
|
|
|
|
class="btn w-full justify-start rounded-none text-black {% if _menu.is_current == 1 %}btn-active text-white bg-primary {% else %} bg-white {% endif %}">
|
|
|
|
|
{{ _menu.name }}
|
|
|
|
|
</a>
|
|
|
|
|
{% endfor %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2024-01-18 23:13:02 +07:00
|
|
|
</div>
|
2025-12-02 09:30:52 +07:00
|
|
|
</div>
|
|
|
|
|
<div class="col-span-3">
|
2024-01-18 23:13:02 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% if page.view_part == "store" %}
|
|
|
|
|
{% include 'product/form_components/store' %}
|
2024-01-18 23:13:02 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "category" %}
|
|
|
|
|
{% include 'product/form_components/category' %}
|
2024-01-18 23:13:02 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "seo" %}
|
|
|
|
|
{% include 'product/form_components/seo' %}
|
2024-01-18 23:13:02 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "description" %}
|
|
|
|
|
{% include 'product/form_components/description' %}
|
2024-01-18 23:13:02 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "spec-group" %}
|
|
|
|
|
{% include 'product/form_components/spec_group' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "instruction" %}
|
|
|
|
|
{% include 'product/form_components/instruction' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "image" %}
|
|
|
|
|
{% include 'product/form_components/image' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "variant" %}
|
|
|
|
|
{% include 'product/form_components/variant' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "accessory" %}
|
|
|
|
|
{% include 'product/form_components/accessory' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "addon" %}
|
|
|
|
|
{% include 'product/form_components/addon' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "video" %}
|
|
|
|
|
{% include 'product/form_components/video' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "tag" %}
|
|
|
|
|
{% include 'product/form_components/tag' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "relation" %}
|
|
|
|
|
{% include 'product/form_components/relation' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "customer-group" %}
|
|
|
|
|
{% include 'product/form_components/customer_group' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "component" %}
|
|
|
|
|
{% include 'product/form_components/component' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "configurable" %}
|
|
|
|
|
{% include 'product/form_components/configurable' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "compatible" %}
|
|
|
|
|
{% include 'product/form_components/compatible' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "similar" %}
|
|
|
|
|
{% include 'product/form_components/similar' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% elsif page.view_part == "combo-set" %}
|
|
|
|
|
{% include 'product/form_components/combo_set' %}
|
2024-01-20 09:29:38 +07:00
|
|
|
|
2025-12-02 09:30:52 +07:00
|
|
|
{% else %}
|
|
|
|
|
<!--//default-->
|
|
|
|
|
{% include 'product/form_components/basic' %}
|
|
|
|
|
{% endif %}
|
2024-01-18 23:13:02 +07:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-02-11 16:22:18 +07:00
|
|
|
</div>
|