1. Refactoring form objects and database objects to use inheritance and abstract base class for consistency and reduced redundancy.\n2. Contact us page button links updated to resolve error of missing link causing page refresh instead of expected functionality.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<h2>{{ product.name }}</h2>
|
||||
<h3>{{ permutation.output_price(model.is_included_VAT) }}</h3>
|
||||
{% set tmp_quantity = 1 %}
|
||||
{% include '_block_input_number_plus_minus.html' %}
|
||||
{% include 'components/common/inputs/_input_number_plus_minus.html' %}
|
||||
{{ form.submit() }}
|
||||
<p>Get it: <strong>{{ permutation.output_delivery_date() }}</strong></p>
|
||||
</form>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<form {{ model.attr_form_type }}="{{ form.form_type }}" {{ model.attr_id_product }}="{{ product.id_product }}" {{ model.attr_id_permutation }}="{{ permutation.id_permutation }}" class="container column">
|
||||
{{ form.hidden_tag() }}
|
||||
{% set tmp_quantity = 1 %}
|
||||
{% include '_block_input_number_plus_minus.html' %}
|
||||
{% include 'components/common/inputs/_input_number_plus_minus.html' %}
|
||||
{{ form.submit() }}
|
||||
</form>
|
||||
<!--
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% extends 'layouts/layout.html' %}
|
||||
|
||||
{% block title %}{{ model.title }}{% endblock %}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script> <!-- Include jQuery from a CDN -->
|
||||
|
||||
<script>
|
||||
var flagBtnOverlayClose = "{{ model.flag_btn_overlay_close }}";
|
||||
var flagBtnSubmit = "{{ model.flag_btn_submit }}";
|
||||
var flagButtonOverlayClose = "{{ model.flag_btn_overlay_close }}";
|
||||
var flagButtonSubmit = "{{ model.flag_btn_submit }}";
|
||||
var flagCard = "{{ model.flag_card }}";
|
||||
var flagCollapsible = "{{ model.flag_collapsible }}";
|
||||
var flagColumn = "{{ model.flag_column }}";
|
||||
@@ -19,7 +19,7 @@
|
||||
var flagContainerInput = "{{ model.flag_container_input }}";
|
||||
var flagRow = "{{ model.flag_row }}";
|
||||
var flagScrollable = "{{ model.flag_scrollable }}";
|
||||
var flagBtnOverlayClose = "{{ model.flag_btn_overlay_close }}";
|
||||
var flagButtonOverlayClose = "{{ model.flag_btn_overlay_close }}";
|
||||
var flagInitialised = "{{ model.flag_initalised }}";
|
||||
var flagSubmitted = "{{ model.flag_submitted }}";
|
||||
var hashPageContact = "{{ model.hash_page_contact }}";
|
||||
|
||||
5
templates/DEPRECATED/_block_select_access_level.html
Normal file
5
templates/DEPRECATED/_block_select_access_level.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% if id_access_level is defined %}
|
||||
<select class="{{ model.FLAG_ACCESS_LEVEL }}" {{ model.ATTR_VALUE_CURRENT }}="{{ id_access_level }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ id_access_level }}" value="{{ id_access_level }}"></select>
|
||||
{% else %}
|
||||
<select class="{{ model.FLAG_ACCESS_LEVEL }}" {{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }}></select>
|
||||
{% endif %}
|
||||
@@ -3,7 +3,7 @@
|
||||
<h3 style="width: 100%; justify-self: left; margin-left: 3vh; display: inline-flex;">{{ cat.name }}</h4>
|
||||
<div class="container">
|
||||
{% for product in cat.products %}
|
||||
{% include '_block_store_product.html' %}
|
||||
{% include 'components/store/_product.html' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user