Spaces:
Runtime error
Runtime error
Vinay Jose
commited on
Commit
•
9ee166b
1
Parent(s):
5d56419
Update edit.html to change delete button
Browse files- templates/edit.html +7 -1
templates/edit.html
CHANGED
@@ -28,7 +28,13 @@
|
|
28 |
<button>Save</button>
|
29 |
</fieldset>
|
30 |
</form>
|
31 |
-
<button
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<p>
|
33 |
<a href="/contacts">Back</a>
|
34 |
</p>
|
|
|
28 |
<button>Save</button>
|
29 |
</fieldset>
|
30 |
</form>
|
31 |
+
<button
|
32 |
+
hx-delete="/contacts/{{ contact.id }} "
|
33 |
+
hx-target="body"
|
34 |
+
hx-push-url="true"
|
35 |
+
hx-confirm="Are you sure you want to delete this contact?">
|
36 |
+
Delete Contact
|
37 |
+
</button>
|
38 |
<p>
|
39 |
<a href="/contacts">Back</a>
|
40 |
</p>
|