summaryrefslogtreecommitdiffstats
path: root/modules-available/debugconfig/templates/debugconfig.html
diff options
context:
space:
mode:
authorChristoph Schulthess2017-01-24 16:57:57 +0100
committerChristoph Schulthess2017-01-24 16:57:57 +0100
commit923105672ac4102bad6daeb1a086713b1e8231c4 (patch)
treef7c491a14fa03d1646bc1384bf61076360b0ae13 /modules-available/debugconfig/templates/debugconfig.html
parentdeleted unused files (diff)
downloadslx-admin-923105672ac4102bad6daeb1a086713b1e8231c4.tar.gz
slx-admin-923105672ac4102bad6daeb1a086713b1e8231c4.tar.xz
slx-admin-923105672ac4102bad6daeb1a086713b1e8231c4.zip
debug config module
Diffstat (limited to 'modules-available/debugconfig/templates/debugconfig.html')
-rw-r--r--modules-available/debugconfig/templates/debugconfig.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/modules-available/debugconfig/templates/debugconfig.html b/modules-available/debugconfig/templates/debugconfig.html
new file mode 100644
index 00000000..4aa0b4e9
--- /dev/null
+++ b/modules-available/debugconfig/templates/debugconfig.html
@@ -0,0 +1,40 @@
+<form action="?do=DebugConfig" method="post">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="$this->setConfig()">
+ <div class="panel panel-default">
+ <div class="panel-heading">{{lang_debugConfig}}</div>
+ <div class="panel-body">
+ <p>{{lang_debugDescription}}</p>
+ <div class="col-md-5 slx-cfg-toggle">
+ <div>REMOTE_DBG_SERVER</div>
+ <div class="slx-default">master-ip</div>
+ {{#debugEnabled}}
+ <input class="bootstrap-switch" name="toggleDebug" value="enable" id="" type="checkbox" checked="true"><label style="margin-left: 10px;">{{lang_debuggingActive}}</label>
+ {{/debugEnabled}}
+ {{^debugEnabled}}
+ <input class="bootstrap-switch" name="toggleDebug" value="enable" id="" type="checkbox"><label style="margin-left: 10px;">{{lang_debuggingInactive}}</label>
+ {{/debugEnabled}}
+ </div>
+ <div class="col-md-5">
+ <input name="debugServer" id="DBG_SERVER_ADDR" class="form-control" value="{{debugServer}}" type="text"/>
+ </div>
+ <div class="col-md-2">
+ <a class="btn btn-default" data-toggle="modal" data-target="help-remoteDebugging">
+ <span class="glyphicon glyphicon-question-sign"></span>
+ </a>
+ </div>
+ <div class="modal fade" id="help-remoteDebugging" tabindex="-1" role="dialog">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">{{setting}}</div>
+ <div class="modal-body">{{{description}}}</div>
+ <div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div>
+ <button type="submit" class="btn btn-primary">{{lang_save}}</button>
+ </div>
+</form>