-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c59bd6
commit 0cb7e4c
Showing
5 changed files
with
71 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,32 @@ | ||
<div id="dogs"> | ||
<div id="processing" class="htmx-indicator">Processing...</div> | ||
<div class="flex flex-col"> | ||
<div class="overflow-x-auto sm:-mx-6 lg:-mx-8"> | ||
<div class="inline-block min-w-full py-2 sm:px-6 lg:px-8"> | ||
<div class="overflow-hidden"> | ||
<div class="flex justify-end"> | ||
<button | ||
hx-get="/dogs/add" | ||
hx-target="#table-body" | ||
hx-swap="outerHTML" | ||
hx-indicator="#processing" | ||
class="inline-flex items-center h-8 px-4 m-2 text-sm text-blue-100 transition-colors duration-150 bg-blue-700 rounded-lg focus:shadow-outline hover:bg-blue-800" | ||
href="" | ||
> | ||
Add | ||
</button> | ||
</div> | ||
<table class="table-auto"> | ||
<thead | ||
class="border-b font-medium dark:border-neutral-500" | ||
> | ||
<tr> | ||
<th scope="col" class="px-6 py-4 hidden">#</th> | ||
<th scope="col" class="px-6 py-4">Name</th> | ||
<th scope="col" class="px-6 py-4"> | ||
Owner Name | ||
</th> | ||
<th scope="col" class="px-6 py-4">Address</th> | ||
<th scope="col" class="px-6 py-4">City</th> | ||
<th scope="col" class="px-6 py-4">Email</th> | ||
<th scope="col" class="px-6 py-4">Service</th> | ||
<th scope="col" class="px-6 py-4">Quantity</th> | ||
<th scope="col" class="px-6 py-4">Price</th> | ||
<th scope="col" class="px-6 py-4">Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody id="table-body"></tbody> | ||
{{ range .dogs }} {{ template "row" . }} {{ end }} | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<button | ||
hx-get="/dogs/add" | ||
hx-target="#table-body" | ||
hx-swap="outerHTML" | ||
hx-indicator="#processing" | ||
href="" | ||
> | ||
Add | ||
</button> | ||
</div> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>#</th> | ||
<th>Name</th> | ||
<th>Owner Name</th> | ||
<th>Address</th> | ||
<th>City</th> | ||
<th>Email</th> | ||
<th>Service</th> | ||
<th>Quantity</th> | ||
<th>Price</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody id="table-body"></tbody> | ||
{{ range .dogs }} {{ template "row" . }} {{ end }} | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters