aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/resources
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-16 12:36:44 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-16 12:36:44 +0100
commit1e03df132dc263baf3434aa6daf47b373e564377 (patch)
tree42dae785a782418fd2b71b11ff4fb59acdfce8a2 /pyblackbird_cc/templates/resources
parented4f9bc53f52aaf3957d30658626a6ff794adcac (diff)
wip: markdown implemented for description field but working on help_text
Diffstat (limited to 'pyblackbird_cc/templates/resources')
-rw-r--r--pyblackbird_cc/templates/resources/resource_detail.html5
-rw-r--r--pyblackbird_cc/templates/resources/resource_metadata_update.html3
2 files changed, 4 insertions, 4 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html
index 70c1b11..8391cca 100644
--- a/pyblackbird_cc/templates/resources/resource_detail.html
+++ b/pyblackbird_cc/templates/resources/resource_detail.html
@@ -1,5 +1,7 @@
{% extends 'base.html' %}
+{% load markdown_extras %}
+
{% block content %}
<div class="container">
<div class="row my-4">
@@ -71,8 +73,7 @@
{% endfor %}
<div class="row my-5">
<div class="col bg-white pt-3 border border-success border-opacity-25 rounded">
- <h3>What's included?</h3>
- <div>{{ resource.description }}</div>
+ <div>{{ resource.description | markdown | safe }}</div>
</div>
</div>
<div class="row">
diff --git a/pyblackbird_cc/templates/resources/resource_metadata_update.html b/pyblackbird_cc/templates/resources/resource_metadata_update.html
index 4c318c7..2c6daa1 100644
--- a/pyblackbird_cc/templates/resources/resource_metadata_update.html
+++ b/pyblackbird_cc/templates/resources/resource_metadata_update.html
@@ -17,9 +17,8 @@
<form action="{% url 'resources:resource_update_metadata' resource.id %}"
method="post">
{% csrf_token %}
- {{ form|crispy }}
+ {% crispy form form.helper %}
{# now for the submit button #}
- <button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>