diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-09-24 19:42:01 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-09-24 20:47:08 +0200 |
commit | 5ad01f6415710521173e7a612b32c982847eada4 (patch) | |
tree | 4d4c8ca0a7ce0ff0f81702ee7bfad0b57c899929 /gui/templates | |
parent | 5bb71419937a4d8919ef33df088f73e6c705b028 (diff) | |
download | dabmod-5ad01f6415710521173e7a612b32c982847eada4.tar.gz dabmod-5ad01f6415710521173e7a612b32c982847eada4.tar.bz2 dabmod-5ad01f6415710521173e7a612b32c982847eada4.zip |
gui: use json for all API answers
Diffstat (limited to 'gui/templates')
-rw-r--r-- | gui/templates/modulator.html | 80 | ||||
-rw-r--r-- | gui/templates/predistortion.html | 38 |
2 files changed, 59 insertions, 59 deletions
diff --git a/gui/templates/modulator.html b/gui/templates/modulator.html index 07e7a82..6deffb1 100644 --- a/gui/templates/modulator.html +++ b/gui/templates/modulator.html @@ -24,50 +24,50 @@ along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>. {% include 'head.html' %} <body> - {% include 'body-nav.html' %} + {% include 'body-nav.html' %} - <div class="container-fluid"> - <div class="panel-group"> - <div class="panel panel-default"> - <div class="panel-body"> - <h3>Gain</h3> - <div class="form-group"> - <label for="digitalgain">Digital Gain:</label> - <input type="text" class="form-control" id="digitalgain"> - <button type="button" class="btn btn-sm btn-info" id="setdigitalgain">Set</button> - </div> - </div> - <div class="panel-body"> - <h3>OFDM Windowing</h3> - <div class="form-group"> - <label for="windowlength">Window length:</label> - <input type="text" class="form-control" id="windowlength"> - <button type="button" class="btn btn-sm btn-info" id="setwindowlength">Set</button> - </div> - </div> - <div class="panel-body"> - <h3>CFR</h3> - <div class="form-group"> - <div class="checkbox"> - <label><input type="checkbox" value="1" id="cfrenable">Enable</label> - </div> - - <label for="cfrclip">clip:</label> - <input type="text" class="form-control" id="cfrclip"> - - <label for="errorclip">error clip:</label> - <input type="text" class="form-control" id="cfrerrorclip"> - <input type="text" readonly class="form-control" id="cfrstats"> - <input type="text" readonly class="form-control" id="paprstats"> - <button type="button" class="btn btn-sm btn-info" id="setclip"> - Set - </button> - </div> - </div> + <div class="container-fluid"> + <div class="panel-group"> + <div class="panel panel-default"> + <div class="panel-body"> + <h3>Gain</h3> + <div class="form-group"> + <label for="digitalgain">Digital Gain:</label> + <input type="text" class="form-control" id="digitalgain"> + <button type="button" class="btn btn-sm btn-info" id="setdigitalgain">Set</button> + </div> + </div> + <div class="panel-body"> + <h3>OFDM Windowing</h3> + <div class="form-group"> + <label for="windowlength">Window length:</label> + <input type="text" class="form-control" id="windowlength"> + <button type="button" class="btn btn-sm btn-info" id="setwindowlength">Set</button> + </div> + </div> + <div class="panel-body"> + <h3>CFR</h3> + <div class="form-group"> + <div class="checkbox"> + <label><input type="checkbox" value="1" id="cfrenable">Enable</label> </div> + <label for="cfrclip">clip:</label> + <input type="text" class="form-control" id="cfrclip"> + + <label for="errorclip">error clip:</label> + <input type="text" class="form-control" id="cfrerrorclip"> + <input type="text" readonly class="form-control" id="cfrstats"> + <input type="text" readonly class="form-control" id="paprstats"> + <button type="button" class="btn btn-sm btn-info" id="setclip"> + Set + </button> + </div> </div> - <button type="button" class="btn btn-sm btn-info" id="refresh">Refresh</button> + </div> + </div> + <button type="button" class="btn btn-sm btn-info" id="refresh">Refresh</button> + </div> </body> </html> diff --git a/gui/templates/predistortion.html b/gui/templates/predistortion.html index ef20a16..316c43d 100644 --- a/gui/templates/predistortion.html +++ b/gui/templates/predistortion.html @@ -24,26 +24,26 @@ along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>. {% include 'head.html' %} <body> - {% include 'body-nav.html' %} - - <div class="container-fluid"> - <div class="panel-group"> - <div class="panel panel-default"> - <div class="panel-body"> - <h3>Capture</h3> - <div class="form-group"> - <label for="capturestatus">Capture status:</label> - <input type="text" class="form-control" id="capturestatus"> - <button type="button" class="btn btn-sm btn-info" id="capturebutton">Capture</button> - </div> + {% include 'body-nav.html' %} + + <div class="container-fluid"> + <div class="panel-group"> + <div class="panel panel-default"> + <div class="panel-body"> + <h3>Capture</h3> + <div class="form-group"> + <label for="capturestatus">Capture status:</label> + <input type="text" class="form-control" id="capturestatus"> + <button type="button" class="btn btn-sm btn-info" id="capturebutton">Capture</button> + </div> + </div> + <div class="panel-body"> + <h3>Status</h3> + <button type="button" class="btn btn-sm btn-info" id="dpdstatusbutton">Update</button> + <div id="dpdstatus"></div> + </div> + </div> </div> - <div class="panel-body"> - <h3>Status</h3> - <button type="button" class="btn btn-sm btn-info" id="dpdstatusbutton">Update</button> - <div id="dpdstatus"></div> - </div> - </div> </div> - </div> </body> </html> |