This commit is contained in:
2024-05-07 15:42:55 +07:00
parent 6415cca99f
commit fe7ddf826e
8 changed files with 327 additions and 165 deletions

View File

@@ -117,31 +117,37 @@
<b class="ml-[3px]">{{item.quantity}}</b>
</div>
</td>
<td>
<td class="align-text-top">
<label class="style-checkbox mb-[7px]">Mới Hot (Hỏi nhiều)
<input type="checkbox" name="new" {% if item.hot_type=="new" %}checked{% endif %}>
<input type="checkbox" name="new" {% if item.hot_type=="new" %}checked{% endif %}
onclick="AdminFunction.update_product_hot({{item.id}})">
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[7px]">HOT (hỏi
nhiều)
<input type="checkbox" name="hot" {% if item.hot_type=="hot" %}checked{% endif %}>
<input type="checkbox" name="hot" {% if item.hot_type=="hot" %}checked{% endif %}
onclick="AdminFunction.update_product_hot({{item.id}})">
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[7px]">Bán
chạy
<input type="checkbox" name="bestsale" {% if item.hot_type=="bestsale" %}checked{% endif %}>
<input type="checkbox" name="bestsale" {% if item.hot_type=="bestsale" %}checked{% endif %}
onclick="AdminFunction.update_product_hot({{item.id}})">
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[7px]">Xả
hàng (sale-off)
<input type="checkbox" name="saleoff" {% if item.hot_type=="saleoff" %}checked{% endif %}>
<input type="checkbox" name="saleoff" {% if item.hot_type=="saleoff" %}checked{% endif %}
onclick="AdminFunction.update_product_hot({{item.id}})">
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[7px]">Chỉ bán online
<input type="checkbox" name="online-only" {% if item.hot_type=="online-only" %}checked{%
endif %}>
endif %} onclick="AdminFunction.update_product_hot({{item.id}})">
<span class="checkmark"></span>
</label>
<div id="js-status-hottype-{{item.id}}" class="flex items-center mt-[5px]"></div>
</td>
<td class="align-text-top">
<div class="list-btn flex items-center w-[150px]">