summaryrefslogtreecommitdiffstats
path: root/modules-available/debugconfig/templates/debugconfig.html
blob: 4e5353b580f2ab38f60fe0934d02613aabbe8855 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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>