Signed-off-by: dusk y.bera003.06@protonmail.com
+10
-14
appview/pages/templates/repo/fork.html
+10
-14
appview/pages/templates/repo/fork.html
···
10
10
<legend class="dark:text-white">Select a knot to fork into</legend>
11
11
<div class="space-y-2">
12
12
<div class="flex flex-col">
13
-
{{ range .Knots }}
14
-
<div class="flex items-center">
15
-
<input
16
-
type="radio"
17
-
name="knot"
18
-
value="{{ . }}"
19
-
class="mr-2"
20
-
id="domain-{{ . }}"
21
-
/>
22
-
<span class="dark:text-white">{{ . }}</span>
23
-
</div>
24
-
{{ else }}
25
-
<p class="dark:text-white">No knots available.</p>
26
-
{{ end }}
13
+
<select id="knot" name="knot" required class="p-1 max-w-64 border border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700">
14
+
<option value="" disabled selected >
15
+
Choose a knot
16
+
</option>
17
+
{{ range .Knots }}
18
+
<option value="{{ . }}" class="py-1">
19
+
{{ . }}
20
+
</option>
21
+
{{ end }}
22
+
</select>
27
23
</div>
28
24
</div>
29
25
<p class="text-sm text-gray-500 dark:text-gray-400">A knot hosts repository data. <a href="/knots" class="underline">Learn how to register your own knot.</a></p>
IMO the radio button here is fine!