WEB - DELETE ISSUE
This commit is contained in:
@@ -29,6 +29,17 @@ templ IssueDetailCard(props IssueDetailCardProps) {
|
||||
</div>
|
||||
}
|
||||
<div class="divider my-2"></div>
|
||||
<div class="flex flex-wrap gap-2 mt-2">
|
||||
<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="grid grid-cols-2 gap-2 text-sm">
|
||||
<div class="bg-base-200 rounded-lg p-2">
|
||||
<span class="text-xs opacity-70 block">Created</span>
|
||||
|
||||
Reference in New Issue
Block a user