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:
2024-09-10 12:09:50 +01:00
parent c9dda91dc9
commit 6b730bf8e7
709 changed files with 5158 additions and 1512 deletions

View File

@@ -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>

View File

@@ -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>
<!--

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'layouts/layout.html' %}
{% block title %}{{ model.title }}{% endblock %}

View File

@@ -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 }}";

View 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 %}

View File

@@ -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>