99 lines
3.8 KiB
HTML
99 lines
3.8 KiB
HTML
|
|
<div class="w-[100%]">
|
|
|
|
<div class="text-sm breadcrumbs ml-[10px]">
|
|
<ul>
|
|
<li><a>Danh sách sản phẩm</a></li>
|
|
<li class="text-[#0041E8]">Form thêm/sửa sản phẩm</li>
|
|
</ul>
|
|
</div>
|
|
<div class="w-[1141px] m-auto">
|
|
<div
|
|
class="title py-[15px] bg-white rounded-[10px] text-center mt-[40px] mb-[15px] font-bold text-[18px] shadow-[0_1px_1px_0_rgba(0,0,0,0.1)]">
|
|
Cập nhật: {{ page.product_info.title }} (ID: {{ page.product_info.id }})</div>
|
|
|
|
<div class="flex">
|
|
<div class="left w-[273px] mr-[15px]">
|
|
<div class="bg-white rounded-[10px] shadow-[0_1px_1px_0_rgba(0,0,0,0.1)]">
|
|
|
|
{% for _menu in page.product_menu %}
|
|
<a role="tab" href="/?module=product&view=form&part={{ _menu.id }}"
|
|
class="py-[7px] px-[15px] text-[#919699] block border-b-[1px] border-[#fafafb]">
|
|
{{ _menu.name }}
|
|
{% if _menu.is_current == 1 %}
|
|
- (current)
|
|
{% endif %}
|
|
</a>
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="right w-[852px]">
|
|
|
|
{% if page.view_part == "store" %}
|
|
{% include 'product/form_components/store' %}
|
|
|
|
{% elsif page.view_part == "category" %}
|
|
{% include 'product/form_components/category' %}
|
|
|
|
{% elsif page.view_part == "seo" %}
|
|
{% include 'product/form_components/seo' %}
|
|
|
|
{% elsif page.view_part == "description" %}
|
|
{% include 'product/form_components/description' %}
|
|
|
|
{% elsif page.view_part == "spec-group" %}
|
|
{% include 'product/form_components/spec_group' %}
|
|
|
|
{% elsif page.view_part == "instruction" %}
|
|
{% include 'product/form_components/instruction' %}
|
|
|
|
{% elsif page.view_part == "image" %}
|
|
{% include 'product/form_components/image' %}
|
|
|
|
{% elsif page.view_part == "variant" %}
|
|
{% include 'product/form_components/variant' %}
|
|
|
|
{% elsif page.view_part == "accessory" %}
|
|
{% include 'product/form_components/accessory' %}
|
|
|
|
{% elsif page.view_part == "addon" %}
|
|
{% include 'product/form_components/addon' %}
|
|
|
|
{% elsif page.view_part == "video" %}
|
|
{% include 'product/form_components/video' %}
|
|
|
|
{% elsif page.view_part == "tag" %}
|
|
{% include 'product/form_components/tag' %}
|
|
|
|
{% elsif page.view_part == "relation" %}
|
|
{% include 'product/form_components/relation' %}
|
|
|
|
{% elsif page.view_part == "customer-group" %}
|
|
{% include 'product/form_components/customer_group' %}
|
|
|
|
{% elsif page.view_part == "component" %}
|
|
{% include 'product/form_components/component' %}
|
|
|
|
{% elsif page.view_part == "configurable" %}
|
|
{% include 'product/form_components/configurable' %}
|
|
|
|
{% elsif page.view_part == "compatible" %}
|
|
{% include 'product/form_components/compatible' %}
|
|
|
|
{% elsif page.view_part == "similar" %}
|
|
{% include 'product/form_components/similar' %}
|
|
|
|
{% elsif page.view_part == "combo-set" %}
|
|
{% include 'product/form_components/combo_set' %}
|
|
|
|
{% else %}
|
|
<!--//default-->
|
|
{% include 'product/form_components/basic' %}
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|