65 lines
3.1 KiB
HTML
65 lines
3.1 KiB
HTML
{% extends 'layouts/layout.html' %}
|
|
|
|
{% block page_body %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/store_product_variations.bundle.css') }}">
|
|
|
|
<form id="{{ model.ID_FORM_FILTERS }}" class="{{ model.FLAG_FILTER }} {{ model.FLAG_ROW }} {{ model.FLAG_CARD }}" action="{{ url_for('routes_store_product_variation.filter_product_variation') }}" method="POST">
|
|
{{ model.form_filters.hidden_tag() }}
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_ROW }} {{ model.FLAG_FILTER }}">
|
|
{{ model.form_filters.is_not_empty.label }}
|
|
{{ model.form_filters.is_not_empty() }}
|
|
{% for error in model.form_filters.is_not_empty.errors %}
|
|
<p class="error">{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_ROW }} {{ model.FLAG_FILTER }}">
|
|
{{ model.form_filters.active.label }}
|
|
{{ model.form_filters.active() }}
|
|
{% for error in model.form_filters.active.errors %}
|
|
<p class="error">{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% set block_id = 'buttons_table_default' %}
|
|
{% include 'components/common/buttons/_buttons_save_cancel.html' %}
|
|
</form>
|
|
|
|
|
|
<table id="{{ model.ID_TABLE_MAIN }}" class="{{ model.FLAG_ROW }} {{ model.FLAG_CARD }}">
|
|
<thead>
|
|
<tr class="{{ model.FLAG_PRODUCT_VARIATION_TYPE }}">
|
|
<th class="{{ model.FLAG_DISPLAY_ORDER }}">Display Order</th>
|
|
<th class="{{ model.FLAG_CODE }}">Code</th>
|
|
<th class="{{ model.FLAG_NAME }}">Name</th>
|
|
<th class="{{ model.FLAG_NAME_PLURAL }}">Name Plural</th>
|
|
<th class="{{ model.FLAG_PRODUCT_VARIATIONS }} {{ model.FLAG_COLLAPSED }}">Variations</th>
|
|
<th class="{{ model.FLAG_ACTIVE}}">
|
|
{% set block_id = 'button_add' %}
|
|
{% include 'components/common/buttons/_buttons_save_cancel.html' %}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% set is_blank_row = False %}
|
|
{% for variation_type in model.variation_types %}
|
|
{% include 'components/store/_row_product_variation_type.html' %}
|
|
{% endfor %}
|
|
|
|
{% set is_blank_row = True %}
|
|
{% include 'components/store/_row_product_variation_type.html' %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% include 'components/common/temporary/_overlay_confirm.html' %}
|
|
{% include 'components/common/temporary/_overlay_error.html' %}
|
|
|
|
<!-- Include JavaScript -->
|
|
<script src="{{ url_for('routes_store.scripts_section_store') }}"></script>
|
|
|
|
<script>
|
|
var productVariationTypes = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.variation_types) | tojson | safe }};
|
|
</script>
|
|
{% endblock %} |