diff options
Diffstat (limited to 'modules-available/debugconfig/templates')
-rw-r--r-- | modules-available/debugconfig/templates/debugconfig.html | 42 | ||||
-rw-r--r-- | modules-available/debugconfig/templates/relaystatus.html | 18 |
2 files changed, 60 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..4e5353b5 --- /dev/null +++ b/modules-available/debugconfig/templates/debugconfig.html @@ -0,0 +1,42 @@ +<form action="?do=DebugConfig" method="post"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="debugconf"> + <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> + <input class="bootstrap-switch" name="toggleDebug" type="checkbox" + {{#debugEnabled}}checked="true"><label style="margin-left: 10px;">{{lang_debuggingActive}}{{/debugEnabled}} + {{^debugEnabled}}><label style="margin-left: 10px;">{{lang_debuggingInactive}}{{/debugEnabled}} + </label> + </div> + <div class="col-md-3"> + <input name="debugServer" id="DBG_SERVER_ADDR" class="form-control" value="{{debugServer}}" type="text"/> + </div> + <div class="col-md-2"> + <input name="port" id="DBG_SERVER_PORT" class="form-control" value="{{port}}" 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> diff --git a/modules-available/debugconfig/templates/relaystatus.html b/modules-available/debugconfig/templates/relaystatus.html new file mode 100644 index 00000000..60e4c494 --- /dev/null +++ b/modules-available/debugconfig/templates/relaystatus.html @@ -0,0 +1,18 @@ + +<div class="panel panel-default"> + <div class="panel-heading">Relay Status for task: {{taskid}}</div> + <div class="panel-body"> + <div data-tm-id="{{taskid}}" data-tm-log="messages"></div> + </div> +</div> + +<!-- <script type="text/javascript"> + function restartCb(task) + { + console.log("here"); + if (!task) + console.log("nothing"); + else + console.log("something"); + } +</script> -->
\ No newline at end of file |