diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 8 |
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> |
