diff options
| author | Andrew Godwin | 2022-11-24 22:31:45 -0700 | 
|---|---|---|
| committer | Andrew Godwin | 2022-11-24 22:31:57 -0700 | 
| commit | 79002e1eaf96e9cfcd2993715b67cf3a61e02fb3 (patch) | |
| tree | 10d3f3c7cd7709cdab5259c5e74066df6e175e74 /templates | |
| parent | df5493dd2a9a884660ee2a491377237071493c76 (diff) | |
| download | takahe-79002e1eaf96e9cfcd2993715b67cf3a61e02fb3.tar.gz takahe-79002e1eaf96e9cfcd2993715b67cf3a61e02fb3.tar.bz2 takahe-79002e1eaf96e9cfcd2993715b67cf3a61e02fb3.zip | |
Add initial delete UI
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/activities/_post.html | 2 | ||||
| -rw-r--r-- | templates/activities/post_delete.html | 14 | 
2 files changed, 15 insertions, 1 deletions
| diff --git a/templates/activities/_post.html b/templates/activities/_post.html index e109e9c..06aa3f7 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -34,7 +34,7 @@              <i class="fa-solid fa-caret-down"></i>          </a>          <menu> -            <a> +            <a href="{{ post.urls.action_delete }}">                  <i class="fa-solid fa-trash"></i> Delete              </a>          </menu> diff --git a/templates/activities/post_delete.html b/templates/activities/post_delete.html new file mode 100644 index 0000000..1566399 --- /dev/null +++ b/templates/activities/post_delete.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}Delete Post{% endblock %} + +{% block content %} +    <h1>Delete this post?</h1> +    <form action="." method="POST"> +        {% csrf_token %} +        <a class="button" onclick="history.back()">Cancel</a> +        <button class="delete">Delete</button> +    </form> + +    {% include "activities/_post.html" %} +{% endblock %} | 
