Allow deletion of draft news articles
authorMagnus Hagander <magnus@hagander.net>
Thu, 15 Dec 2022 14:55:38 +0000 (15:55 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 15 Dec 2022 16:25:42 +0000 (17:25 +0100)
commit11725a28c496d66db18740a3a02760379df455ef
treea49f3876cdb9f33ed23c873c8536054f87c40bc6
parent31fc36a004f0c30cfde97bdd306d2fa4a314c51b
Allow deletion of draft news articles

When somebody posts a news article, make it possible to delete it before
it's submitted to moderation (or after it's been withdrawn or bounced),
instead of forcing the user to leave it around ForEver (TM).

Do this by adding some generic functionality for confirmation popups,
that can also be used for other things in the future.
media/js/main.js
pgweb/util/helpers.py
templates/base/form_contents.html