blob: 3a54edfb60d07a109dee628adaa9e0f6d774fb86 [file] [log] [blame]
Giorgi Lekveishvili5c1b06e2024-03-28 15:19:44 +04001{{ define "task" }}
2{{ range . }}
3<li aria-busy="{{ eq .Status 0 }}">
4 {{ .Title }}{{ if .Err }} - {{ .Err.Error }} {{ end }}
5 {{ if .Subtasks }}
6 <ul>
7 {{ template "task" .Subtasks }}
8 </ul>
9 {{ end }}
10</li>
11{{ end }}
12{{ end }}
13
14{{ define "main" }}
15<article>
16 <ul>
17 {{ template "task" .Root.Subtasks }}
18 </ul>
19</article>
20{{ if .DNSRecords }}
21<div>
22 <form action="" method="POST">
23 You will have to publish following DNS records via your domain registrar.
24 <textarea rows="7">{{ .DNSRecords }}</textarea>
25 <label for="domain-registrar">Domain Registrar</label>
26 <select id="domain-registrar" required tabindex="1">
27 <option value="" selected>Select registrar</option>
28 <option value="gandi">Gandi</option>
29 <option value="namecheap">Namecheap</option>
30 </select>
31 <label for="api-token">API Token</label>
32 <input
33 type="text"
34 id="api-token"
35 name="api-token"
36 required
37 autofocus
38 tabindex="2"
39 />
40 <button type="submit" tabindex="3">Update</button>
41 </form>
42</div>
43{{ end }}
44{{ end }}