]> code.octet-stream.net Git - broadcaster/blob - broadcaster-server/templates/radio.html
Add licence, etc.
[broadcaster] / broadcaster-server / templates / radio.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Broadcaster</title>
7 </head>
8 <body>
9 <main>
10 <h1>A specific radio</h1>
11 <h2>
12 {{if .Radio.Id}}
13 Edit Radio
14 {{else}}
15 Register New Radio
16 {{end}}
17 </h2>
18 <form action="/radios/submit" method="POST">
19 <input type="hidden" name="radioId" value="{{.Radio.Id}}">
20 <p>
21 <label for="radioName">Name:</label>
22 <input type="text" id="radioName" name="radioName" value="{{.Radio.Name}}">
23 </p>
24 <p>
25 Authentication token: <b>{{.Radio.Token}}</b>
26 <input type="hidden" name="radioToken" value="{{.Radio.Token}}">
27 </p>
28 <p>
29 <input type="submit" value="Save Radio">
30 </p>
31 </form>
32 {{if .Radio.Id}}
33 <h3>Delete</h3>
34 <form action="/radios/delete" method="POST">
35 <input type="hidden" name="radioId" value="{{.Radio.Id}}">
36 <p>
37 <input type="submit" value="Delete Radio">
38 </p>
39 </form>
40 {{end}}
41 </main>
42 </body>
43 </html>