diff options
author | xengineering <me@xengineering.eu> | 2023-04-22 20:30:46 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-04-22 20:30:46 +0200 |
commit | ce20e58eac9432721f281a351d4ebe4f870c9989 (patch) | |
tree | a9e742caf79cc3f4fe9b015eb8c10da8bd93c9ae /data/templates/recipe_confirm_deletion.html | |
parent | 13542dd8073ee48aa25ef4958fd2b2da5d848092 (diff) | |
download | ceres-ce20e58eac9432721f281a351d4ebe4f870c9989.tar ceres-ce20e58eac9432721f281a351d4ebe4f870c9989.tar.zst ceres-ce20e58eac9432721f281a351d4ebe4f870c9989.zip |
Move delete button from edit page to recipe page
This reduces the number of clicks to delete a recipe.
Diffstat (limited to 'data/templates/recipe_confirm_deletion.html')
-rw-r--r-- | data/templates/recipe_confirm_deletion.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/data/templates/recipe_confirm_deletion.html b/data/templates/recipe_confirm_deletion.html index d247b13..17c4da8 100644 --- a/data/templates/recipe_confirm_deletion.html +++ b/data/templates/recipe_confirm_deletion.html @@ -14,10 +14,9 @@ </header> <main> - <p>Recipe ID: {{.Id}}</p> <p>Do you really want to delete this recipe?</p> <form action="/recipe/confirm-deletion?id={{.Id}}" method="POST"> - <a href="/recipe/edit?id={{.Id}}"><button type="button">cancel</button></a> + <a href="/recipe?id={{.Id}}"><button type="button">cancel</button></a> <button style="background-color:red" type="submit">delete</button> </form> {{ template "footer.html" }} |