WEB - DELETE ISSUE
This commit is contained in:
@@ -14,7 +14,7 @@ type IssueDetailProps struct {
|
||||
|
||||
templ IssueDetailContent(props IssueDetailProps) {
|
||||
<div class="container mx-auto px-4 py-6">
|
||||
<div class="mb-4">
|
||||
<div class="mb-4 flex flex-wrap items-center gap-2">
|
||||
<a
|
||||
class="btn btn-ghost btn-sm"
|
||||
hx-get="/"
|
||||
@@ -25,6 +25,15 @@ templ IssueDetailContent(props IssueDetailProps) {
|
||||
@components.IconBack()
|
||||
Back to Issues
|
||||
</a>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-error btn-sm btn-outline"
|
||||
hx-delete={ "/issues/" + props.Issue.ID }
|
||||
hx-confirm="Are you sure you want to delete this issue? This action cannot be undone."
|
||||
hx-target="body"
|
||||
>
|
||||
Delete issue
|
||||
</button>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
@components.IssueDetailCard(components.IssueDetailCardProps{Issue: props.Issue, DisplayOwner: props.DisplayOwner, DisplayAssignee: props.DisplayAssignee})
|
||||
|
||||
Reference in New Issue
Block a user