diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-22 20:10:38 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-22 20:10:38 +0100 |
commit | c7261ae893583707d1720492f67b5a3f5ffcdf72 (patch) | |
tree | 73cccf0907b0990fb080d896187701802f03f409 /pyblackbird_cc/templates/resources/create_featured_resource.html | |
parent | befd3e81321e0f5989d68a6838b4a17af51b1e64 (diff) |
Adds a new page template to manipulate feature resources - but we may not need this
Diffstat (limited to 'pyblackbird_cc/templates/resources/create_featured_resource.html')
-rw-r--r-- | pyblackbird_cc/templates/resources/create_featured_resource.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pyblackbird_cc/templates/resources/create_featured_resource.html b/pyblackbird_cc/templates/resources/create_featured_resource.html index 7995cad..e98b2ba 100644 --- a/pyblackbird_cc/templates/resources/create_featured_resource.html +++ b/pyblackbird_cc/templates/resources/create_featured_resource.html @@ -1,9 +1,21 @@ {% extends "base.html" %} {% load static %} -{% block title %}?Add featured resource{% endblock title %} +{% block title %}Add featured resource{% endblock title %} {% block content %} -<p>Bobbins -totalus bobinus</p> + +{% if request.user.is_authenticated and request.user.is_staff %} + <div class="row d-flex justify-content-center"> + <div class="col bg-light mt-lg-4 p-4 border border-success border-opacity-25 rounded"> + <h2>Configure featured resources</h2> + <p>You can select three resources to be "featured" on the main page</p> + </div> + </div> +{% else %} + <p>You must be a super-user to access this page.</p> +{% endif %} + + {% endblock content %} |