29 lines
980 B
HTML
29 lines
980 B
HTML
<tr id="datarow-{{.ID}}" class="border-b dark:border-neutral-500">
|
|
<td class="whitespace-nowrap px-6 py-4">{{.ID}}</td>
|
|
<td class="whitespace-nowrap px-6 py-4">{{.Name}}</td>
|
|
<td class="whitespace-nowrap px-6 py-4">{{.Stage}}</td>
|
|
<td class="whitespace-nowrap px-6 py-4">{{.Category}}</td>
|
|
|
|
{{ if .Description }}
|
|
<td class="whitespace-nowrap px-6 py-4">{{.Description}}</td>
|
|
{{ else }}
|
|
<td class="whitespace-nowrap px-6 py-4">...</td>
|
|
{{ end }}
|
|
|
|
{{ if .Notes }}
|
|
<td class="whitespace-nowrap px-6 py-4">{{.Notes}}</td>
|
|
{{ else }}
|
|
<td class="whitespace-nowrap px-6 py-4">...</td>
|
|
{{ end }}
|
|
|
|
<td class="whitespace-nowrap px-6 py-4">
|
|
<button
|
|
hx-get="/items/edit/{{.ID}}"
|
|
hx-target="#datarow-{{.ID}}"
|
|
hx-swap="outerHTML"
|
|
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"
|
|
>
|
|
Edit
|
|
</button>
|
|
</tr>
|