]> code.octet-stream.net Git - broadcaster/blob - server/templates/radio.html
Make headings consistent in UI
[broadcaster] / server / templates / radio.html
1
2 <h1>
3 {{if .Radio.Id}}
4 Edit Radio
5 {{else}}
6 Register New Radio
7 {{end}}
8 </h1>
9 <form action="/radios/submit" method="POST">
10 <input type="hidden" name="radioId" value="{{.Radio.Id}}">
11 <p>
12 <label for="radioName">Name:</label>
13 <input type="text" id="radioName" name="radioName" value="{{.Radio.Name}}">
14 </p>
15 <p>
16 Authentication token: <b>{{.Radio.Token}}</b>
17 <input type="hidden" name="radioToken" value="{{.Radio.Token}}">
18 </p>
19 <p>
20 <input type="submit" value="Save Radio">
21 </p>
22 </form>
23 {{if .Radio.Id}}
24 <h3>Delete</h3>
25 <form action="/radios/delete" method="POST">
26 <input type="hidden" name="radioId" value="{{.Radio.Id}}">
27 <p>
28 <input type="submit" value="Delete Radio">
29 </p>
30 </form>
31 {{end}}