update product

This commit is contained in:
2024-02-29 14:49:03 +07:00
parent 6166366250
commit 6f393f6e64
22 changed files with 866 additions and 16 deletions

View File

@@ -0,0 +1,40 @@
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: 'textarea#product-desc',
height: 350,
menubar: true,
plugins: [
'advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table paste code help wordcount'
],
toolbar: 'undo redo | formatselect | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
tinymce.init({
selector: 'textarea#product-static',
height: 350,
menubar: true,
plugins: [
'advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table paste code help wordcount'
],
toolbar: 'undo redo | formatselect | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
</script>

View File

@@ -2,18 +2,22 @@
{% if global.module == 'home' %}
{% include javascript/homepage %}
{% include javascript/homepage %}
{% elsif global.module == 'product' %}
{% if global.view == 'home' %}
{% include javascript/product_list %}
{% endif %}
{% if global.view == 'home' %}
{% include javascript/product_list %}
{% endif %}
{% include javascript/product_form %}
{% include javascript/product_form %}
{% elsif global.module == 'deal' %}
{% include javascript/product_form %}
{% include javascript/product_form %}
{% elsif global.module == 'brand' %}
{% include javascript/brand %}
{% endif %}