Targets section: one Add, then a target type and Next, then that type's fields (closes #370) #463

Merged
clawbot merged 4 commits from issue-370-targets-add-by-type into next 2026-10-02 22:24:39 +02:00
Showing only changes of commit b5c10dabea - Show all commits
+1 -1
View File
@@ -137,7 +137,7 @@
<form method="POST" action="/hook/{{.Webhook.ID}}/targets" x-ref="form"> <form method="POST" action="/hook/{{.Webhook.ID}}/targets" x-ref="form">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}"> <input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<div x-show="choosing" x-cloak class="p-4 bg-gray-50 border-b border-gray-200 flex flex-wrap gap-2"> <div x-show="choosing" x-cloak class="p-4 bg-gray-50 border-b border-gray-200 flex flex-wrap gap-2">
<select x-ref="type" aria-label="Target type" class="input text-sm w-40"> <select x-ref="type" aria-label="Target type" class="input text-sm w-32">
<option value="http">HTTP</option> <option value="http">HTTP</option>
<option value="slack">Slack</option> <option value="slack">Slack</option>
<option value="database">Database</option> <option value="database">Database</option>