diff options
| author | Bobby <[email protected]> | 2022-09-20 02:14:14 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-09-20 02:14:14 -0400 |
| commit | 402a2a77e0a4e1cfc3f48145b0536ce5b6d30a97 (patch) | |
| tree | 1c82c861846d5d62fc592029ce7a95207d1e43db | |
| parent | 794c197e0bd07209e90ad1d2f5c6fbdc65d2d2a7 (diff) | |
| download | thatcomputerscientist-402a2a77e0a4e1cfc3f48145b0536ce5b6d30a97.tar.xz thatcomputerscientist-402a2a77e0a4e1cfc3f48145b0536ce5b6d30a97.zip | |
Added alerts for publishing and unpublishing posts
| -rw-r--r-- | templates/blog_admin/posts.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/blog_admin/posts.html b/templates/blog_admin/posts.html index 67d6bd37..6c4575cd 100644 --- a/templates/blog_admin/posts.html +++ b/templates/blog_admin/posts.html @@ -28,9 +28,9 @@ <a href="{% url 'blog-admin:edit-post' post.slug %}">Edit</a> <a href="#" class="error">Delete</a> {% if post.is_public %} - <a href="{% url 'blog-admin:unpublish-post' post.slug %}" class="error">Unpublish</a> + <a href="{% url 'blog-admin:unpublish-post' post.slug %}" class="error" onclick="return confirm('This post will immediately be hidden from users. Proceed?')">Unpublish</a> {% else %} - <a href="{% url 'blog-admin:publish-post' post.slug %}" class="success">Publish</a> + <a href="{% url 'blog-admin:publish-post' post.slug %}" class="success" onclick="return confirm('This post will immediately be shown to users. Proceed?')">Publish</a> {% endif %} </td> </tr> |
