summaryrefslogtreecommitdiffstats
path: root/gui/views
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-07 18:31:14 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-07 18:31:14 +0200
commitbbafa23de92eb542f4c8266d484aed9faf88d360 (patch)
tree75edfa08d5f8ac4d0e620422df1d87e631f77a33 /gui/views
parente6f8d2c621727a7ee7dbafa6f9f06f6905e6cdb7 (diff)
parent39d6a781bbd9073aba30db15f57d8ce3c3e3ab92 (diff)
downloaddabmux-bbafa23de92eb542f4c8266d484aed9faf88d360.tar.gz
dabmux-bbafa23de92eb542f4c8266d484aed9faf88d360.tar.bz2
dabmux-bbafa23de92eb542f4c8266d484aed9faf88d360.zip
Merge next into servicelinking
Diffstat (limited to 'gui/views')
-rw-r--r--gui/views/index.tpl39
-rw-r--r--gui/views/rcparam.tpl22
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> &mdash; 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> &mdash; {{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> &mdash; 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>
+