this repo has no description
1{{ define "title" }}new repo{{ end }}
2
3{{ define "content" }}
4<div class="p-6">
5 <p class="text-xl font-bold">Create a new repository</p>
6</div>
7<div class="p-6 bg-white drop-shadow-sm rounded">
8 <form hx-post="/repo/new" class="space-y-12" hx-swap="none">
9 <div class="space-y-2">
10 <label for="name" class="block uppercase font-bold text-sm">Repository name</label>
11 <input
12 type="text"
13 id="name"
14 name="name"
15 required
16 class="w-full max-w-md"
17 />
18 <p class="text-sm text-gray-500">All repositories are publicly visible.</p>
19 </div>
20
21 <fieldset class="space-y-3">
22 <legend class="uppercase font-bold text-sm">Select a knot</legend>
23 <div class="space-y-2">
24 {{ range .Knots }}
25 <div>
26 <label class="inline-flex items-center">
27 <input
28 type="radio"
29 name="domain"
30 value="{{ . }}"
31 class="mr-2"
32 />
33 <span>{{ . }}</span>
34 </label>
35 </div>
36 {{ else }}
37 <p>No knots available.</p>
38 {{ end }}
39 </div>
40 <p class="text-sm text-gray-500">A knot hosts repository data. <a href="/knots" class="underline">Learn how to register your own knot.</a></p>
41 </fieldset>
42
43 <div class="space-y-2">
44 <button type="submit" class="btn">create repo</button>
45 <div id="repo" class="error"></div>
46 </div>
47 </form>
48</div>
49{{ end }}