1. View, filter, and save Product Permutation. \n 2. Synchronised with Product Category page and all common functionality moved into base and base table css, js, and python files.
This commit is contained in:
1
templates/components/common/inputs/_option_blank.html
Normal file
1
templates/components/common/inputs/_option_blank.html
Normal file
@@ -0,0 +1 @@
|
||||
<option value="0">Select</option>
|
||||
@@ -1,18 +0,0 @@
|
||||
|
||||
{% if variation_tree is not defined %}
|
||||
{% set is_blank_row = True %}
|
||||
{% endif %}
|
||||
{% if is_blank_row is not defined %}
|
||||
{% set is_blank_row = True %}
|
||||
{% endif %}
|
||||
|
||||
{% if not is_blank_row %}
|
||||
{% set json_str_variations = permutation.variation_tree.to_json_str() %}
|
||||
<textarea
|
||||
class="{{ model.FLAG_VARIATIONS }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ json_str_variations }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ json_str_variations }}"
|
||||
>{{ permutation.variation_tree.to_str_textarea() }}</textarea>
|
||||
{% else %}
|
||||
<textarea class="{{ model.FLAG_VARIATIONS }}" {{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }}></textarea>
|
||||
{% endif %}
|
||||
@@ -1,20 +0,0 @@
|
||||
|
||||
{% if variation_tree is not defined %}
|
||||
{% set is_blank_row = True %}
|
||||
{% endif %}
|
||||
{% if is_blank_row is not defined %}
|
||||
{% set is_blank_row = True %}
|
||||
{% endif %}
|
||||
|
||||
{% if not is_blank_row %}
|
||||
{# % set json_str_variation_types = product.get_json_str_types_variation_trees() % #}
|
||||
{% set names_variation_type = product.get_variation_types_unique() %}
|
||||
{% set json_str_variation_types = jsonify(names_variation_type) %}
|
||||
<textarea
|
||||
class="{{ model.FLAG_VARIATIONS }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ json_str_variation_types }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ json_str_variation_types }}"
|
||||
>{{ model.join_with_linebreaks(names_variation_type) }}</textarea>
|
||||
{% else %}
|
||||
<textarea class="{{ model.FLAG_VARIATIONS }}" {{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }}></textarea>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user