From ced16ee9dc3bf1790c0345e874dc7861e27c99ca Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 14 May 2024 13:59:52 +0100 Subject: Adds crispy forms helper --- .../templates/resources/resource_create.html | 21 +++++++----- .../templates/resources/resource_detail.html | 40 +++++++++++----------- 2 files changed, 32 insertions(+), 29 deletions(-) (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/resource_create.html b/pyblackbird_cc/templates/resources/resource_create.html index 03a192a..c10e7b8 100644 --- a/pyblackbird_cc/templates/resources/resource_create.html +++ b/pyblackbird_cc/templates/resources/resource_create.html @@ -8,14 +8,17 @@ {# {% endblock %}#} {% block content %}
-

Upload a new resource

-

{% lorem %}

-
- {% csrf_token %} - {{ form|crispy }} - -
+
+
+

Upload a new resource

+

{% lorem %}

+
+ {% csrf_token %} + {% crispy form form.helper %} +
+
+
{% endblock content %} diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index 61d9265..a52c2c6 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -23,28 +23,28 @@

{{ snapshot_filename }}

- {% for snapshot_url in snapshot_urls %}{{ snapshot_filename }} - {% endfor %} -
-
-

What's included?

-
{{ resource.description }}
-

What's it for?

-
{% lorem %}
-

Resource Details

-
{% lorem %}
-
-
-

Download the resource

-
- Click - - to download the resource + {% for snapshot_url in snapshot_urls %}{{ snapshot_filename }}{% endfor %} +
+

What's included?

+
{{ resource.description }}
+

What's it for?

+
{% lorem %}
+

Resource Details

+
{% lorem %}
+
+
+

Download the resource

+
+ Click + + to download the resource +
+
-
- + {% endfor %}
Logged in as {{ request.user.username }}
{% endblock content %} + -- cgit v1.2.3