aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/resources/resource_create.html
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-14 13:59:52 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-14 13:59:52 +0100
commitced16ee9dc3bf1790c0345e874dc7861e27c99ca (patch)
tree17cc73c5232b1043d241736c4728904b0fb8f9ed /pyblackbird_cc/templates/resources/resource_create.html
parent46f11648d902b22a177b878e35d6049a7a127ce7 (diff)
Adds crispy forms helper
Diffstat (limited to 'pyblackbird_cc/templates/resources/resource_create.html')
-rw-r--r--pyblackbird_cc/templates/resources/resource_create.html21
1 files changed, 12 insertions, 9 deletions
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 %}
<div class="container">
- <h2>Upload a new resource</h2>
- <p>{% lorem %}</p>
- <form action="{% url 'resources:create_resource' %}"
- method="post"
- enctype="multipart/form-data">
- {% csrf_token %}
- {{ form|crispy }}
- <input type="submit" class="btn btn-primary" value="Upload" />
- </form>
+ <div class="row d-flex justify-content-center">
+ <div class="col-md-10 bg-light mt-lg-4">
+ <h2>Upload a new resource</h2>
+ <p>{% lorem %}</p>
+ <form action="{% url 'resources:create_resource' %}"
+ method="post"
+ enctype="multipart/form-data">
+ {% csrf_token %}
+ {% crispy form form.helper %}
+ </form>
+ </div>
+ </div>
</div>
{% endblock content %}