Vinay Jose commited on
Commit
5d56419
·
unverified ·
1 Parent(s): 787ef79

Update edit.html

Browse files
Files changed (1) hide show
  1. templates/edit.html +1 -3
templates/edit.html CHANGED
@@ -28,9 +28,7 @@
28
  <button>Save</button>
29
  </fieldset>
30
  </form>
31
- <form action="/contacts/{{ contact.id }}/delete" method="post">
32
- <button>Delete Contact</button>
33
- </form>
34
  <p>
35
  <a href="/contacts">Back</a>
36
  </p>
 
28
  <button>Save</button>
29
  </fieldset>
30
  </form>
31
+ <button hx-delete="/contacts/{{ contact.id }}">Delete Contact</button>
 
 
32
  <p>
33
  <a href="/contacts">Back</a>
34
  </p>