diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-14 12:53:28 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-14 12:53:28 +0100 |
commit | 46f11648d902b22a177b878e35d6049a7a127ce7 (patch) | |
tree | f59f6630717bc9097c988a6d8d3eebe4ad548f1d /pyblackbird_cc/templates/resources/resource_create.html | |
parent | b5e2c4b9a7aab20db6dd6072a01abd114e8e55de (diff) |
Can now upload to Spaces
Diffstat (limited to 'pyblackbird_cc/templates/resources/resource_create.html')
-rw-r--r-- | pyblackbird_cc/templates/resources/resource_create.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_create.html b/pyblackbird_cc/templates/resources/resource_create.html new file mode 100644 index 0000000..03a192a --- /dev/null +++ b/pyblackbird_cc/templates/resources/resource_create.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% load static %} +{% load crispy_forms_tags %} + +{# {% block extra_css %}#} +{# <link rel="stylesheet" href="{% static 'css/forms.css' %}">#} +{# {% 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> +{% endblock content %} |