Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Add first draft of chapter2's edit feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmealing committed Oct 29, 2023
1 parent 07e0ece commit 1f95b11
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions priv/chapter2-edit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<form hx-put="/chapter2/contact/1" hx-target="this" hx-swap="outerHTML">
<div>
<label>First Name</label>
<input type="text" name="firstName" value="Joe">
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="lastName" value="Armstrong">
</div>
<div class="form-group">
<label>Email Address</label>
<input type="email" name="email" value="joe@blow.com">
</div>
<button class="btn">Submit</button>
<button class="btn" hx-get="/chapter2/contact/1">Cancel</button>
</form>

0 comments on commit 1f95b11

Please sign in to comment.