Skip to content

Commit f8f2206

Browse files
committed
Fix html
1 parent e55395d commit f8f2206

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

components/filter.templ

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
)
66

77
templ filter() {
8-
<div class="ml-3 mr-3 mt-3 flex items-center space-x-2">
8+
<form class="ml-3 mr-3 mt-3 flex items-center space-x-2">
99
<div class="w-full">
1010
<label for="company" class="block text-sm font-medium leading-6 text-gray-900">Company</label>
1111
<div class="mt-2">
@@ -23,5 +23,11 @@ templ filter() {
2323
Label: "Status",
2424
Options: types.JobApplicationStatusSelectOptions,
2525
})
26-
</div>
26+
<button
27+
type="submit"
28+
class="rounded-md bg-blue-600 mt-8 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"
29+
>
30+
Filter
31+
</button>
32+
</form>
2733
}

components/jobs.templ

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
)
1010

1111
templ jobs(jobs []types.JobApplication) {
12+
@filter()
1213
<ul role="list" class="divide-y divide-gray-100 px-4 py-5 sm:px-6">
1314
for _, j := range jobs {
1415
<li class="flex items-center justify-between gap-x-6 py-5">

0 commit comments

Comments
 (0)