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