summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-06-02 19:18:59 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-06-02 19:18:59 +0200
commit5d1ed334512c4b0229f845cf8792080c79a8c792 (patch)
tree391e415b9056c4384dce9a283b11a2a4a8101085 /templates
parent83a87a3ac93a50e42ff6bc26fdfbab8eecbf314f (diff)
downloadjokevote-5d1ed334512c4b0229f845cf8792080c79a8c792.tar.gz
jokevote-5d1ed334512c4b0229f845cf8792080c79a8c792.zip
allow joke submitters to delete
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html
index 7038617..866b1d3 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -38,9 +38,11 @@
</button>
</form>
{% if joke.mine %}
- <div class="col s12 center">
- <i class="material-icons">stars</i>
- </div>
+ <form action="/delete" method="post">
+ <input type="hidden" name="id" value="{{ joke.id }}">
+ <input type="hidden" name="redirpage" value="{{ currentpage }}">
+ <button class="btn-flat col s12" type="submit"><i class="material-icons">delete</i></button>
+ </form>
{% endif %}
</div>
</div>