diff options
Diffstat (limited to 'gui/views')
-rw-r--r-- | gui/views/index.tpl | 39 | ||||
-rw-r--r-- | gui/views/rcparam.tpl | 22 |
2 files changed, 49 insertions, 12 deletions
diff --git a/gui/views/index.tpl b/gui/views/index.tpl index c38d827..4538df8 100644 --- a/gui/views/index.tpl +++ b/gui/views/index.tpl @@ -14,11 +14,12 @@ <li><a href="#servicelist">Services</a></li> <li><a href="#subchannels">Subchannels</a></li> <li><a href="#components">Components</a></li> + <li><a href="#rcmodules">RC Modules</a></li> </ul> <div id="info"> - <div id="general"> - <p>General Multiplex Options</p> + <div id="general"><div class="cadre"> + <h2>General Multiplex Options</h2> <ul> <li>Number of frames to encode: {{g.nbframes}}</li> <li>Statistics server port: {{g.statsserverport}}</li> @@ -27,31 +28,45 @@ <li>DAB Mode: {{g.dabmode}}</li> <li>Log to syslog: {{g.syslog}}</li> </ul> - </div> - <div id="servicelist"> - <p>Services</p> + </div></div> + <div id="servicelist"><div class="cadre"> + <h2>Services</h2> <ul> % for s in services: <li>{{s.name}}: <i>{{s.label}} ({{s.shortlabel}})</i> — id = {{s.id}}</li> % end </ul> - </div> - <div id="subchannels"> - <p>Subchannels</p> + </div></div> + <div id="subchannels"><div class="cadre"> + <h2>Subchannels</h2> <ul> % for s in subchannels: <li>{{s.name}}: <i>{{s.type}}</i> — {{s.inputfile}}; {{s.bitrate}}kbps</li> % end </ul> - </div> - <div id="components"> - <p>Components</p> + </div></div> + <div id="components"><div class="cadre"> + <h2>Components</h2> <ul> % for s in components: <li>{{s.name}}: <i>{{s.label}} ({{s.shortlabel}})</i> — service {{s.service}}; subchannel {{s.subchannel}}; figtype {{s.figtype}}</li> % end </ul> - </div> + </div></div> + <div id="rcmodules"><div class="cadre"> + <h2>RC Modules</h2> + <ul> + % for m in rcmodules: + <li>{{m.name}} + <ul> + % for p in m.parameters: + <li><a href="/rc/{{m.name}}/{{p.param}}">{{p.param}}</a> : {{p.value}}</li> + % end + </ul> + </li> + % end + </ul> + </div></div> </div> </body> </html> diff --git a/gui/views/rcparam.tpl b/gui/views/rcparam.tpl new file mode 100644 index 0000000..955086b --- /dev/null +++ b/gui/views/rcparam.tpl @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html><head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <title>ODR-DabMux Configuration</title> + <link rel="stylesheet" href="/static/style.css" type="text/css" media="screen" charset="utf-8"/> + <script type="text/javascript" src="/static/jquery-1.10.2.min.js"></script> + <script type="text/javascript" src="/static/intercooler-1.0.1.min.js"></script> +</head> +<body> + <h1>Remote-Control of module {{module}}</h1> + + <form ic-post-to="/rc/{{module}}/{{param}}"> + <div class="form-group"> + <label>Parameter <i>{{param}}</i> value: </label> + <input class="form-control" name="newvalue" type="text" value="{{value}}"> + </div> + <button class="btn btn-default">Update value</button> + </form> + +</body> +</html> + |