From 1a34a9f78641d868f7445c3f4cabbef7c563b78c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 21 Oct 2024 17:28:41 +0100 Subject: wip: remove bootstrap part 1 --- .../templates/resources/resource_detail.html | 46 ++++++++--------- .../templates/resources/resource_list.html | 58 +++++++++++----------- 2 files changed, 52 insertions(+), 52 deletions(-) (limited to 'alphabetlearning/templates/resources') diff --git a/alphabetlearning/templates/resources/resource_detail.html b/alphabetlearning/templates/resources/resource_detail.html index 334f4ed..5012c5b 100644 --- a/alphabetlearning/templates/resources/resource_detail.html +++ b/alphabetlearning/templates/resources/resource_detail.html @@ -4,21 +4,21 @@ {% block content %} -
-
+
+
{% for tn_url, tn_filename in resource.thumbnails %}
- {{ tn_filename }} + {{ tn_filename }}
{% endfor %}
-
-
-
-

{{ resource.name }}

+
+
+
+

{{ resource.name }}

-
+

{{ resource.main_resource_category }}

@@ -27,36 +27,36 @@
-
+
{% if resource.pdf_filenames|length > 1 %} -

Contains {{ resource.pdf_filenames|length }} PDF files.

+

Contains {{ resource.pdf_filenames|length }} PDF files.

{% else %} -

Contains {{ resource.pdf_filenames|length }} PDF file.

+

Contains {{ resource.pdf_filenames|length }} PDF file.

{% endif %}
-
-

£{{ resource.price|floatformat:2 }} (or 1 credit)

+
+

£{{ resource.price|floatformat:2 }} (or 1 credit)


-
-
-

Product summary

+
+
+

Product summary

{{resource.card_description}}

-
-
+
+
{% if resource.in_cart %}
-
{% else %}
-
@@ -69,7 +69,7 @@ -
+
{% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} {% for snapshot_url in snapshot_urls %}
@@ -80,8 +80,8 @@
-
-
+
+

Product detail

{{ resource.description | markdown | safe }}
diff --git a/alphabetlearning/templates/resources/resource_list.html b/alphabetlearning/templates/resources/resource_list.html index fdd0394..9ea9177 100644 --- a/alphabetlearning/templates/resources/resource_list.html +++ b/alphabetlearning/templates/resources/resource_list.html @@ -6,24 +6,24 @@ {% endblock title %} {% block content %} -
+
{% include "resources/admin_bar.html" %}
{# featured resources #} {% if featured_resources %} -
-
Featured resources
+
+

Featured resources

-
+
{% for featured_resource in featured_resources %} {% if featured_resources|length == 1 %} -
+
{% elif featured_resources|length == 2 %} -
+
{% elif featured_resources|length == 3 %} -
+
{% endif %} {% include "resources/resource_card_featured.html" with resource=featured_resource %}
@@ -34,19 +34,19 @@ {% endif %} {# standard resources #} -
-
-
Standard resources
+
+
+

Standard resources

-