summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates/screensaver-start.html
blob: cbf2f021443c1369dc23618ae559e149333dfa2c (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<form role="form" enctype="multipart/form-data" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="next" value="{{next}}">
	<input type="hidden" name="id" value="{{id}}">
	<input type="hidden" name="edit" value="{{edit}}">

	<div class="form-group">
		<div class="input-group">
			<span class="input-group-addon">{{lang_moduleName}}</span>
			<input type="text" tabindex="1" name="title" value="{{title}}" class="form-control" autofocus required>
		</div>
	</div>

	<div>
		<i>{{lang_qssInfoText}}</i>
	</div>
	<div class="slx-space">
		<a href="https://www.bwlehrpool.de/wiki/doku.php/satellite/qss" target="_blank">
			QSS
			<span class="glyphicon glyphicon-new-window"></span>
		</a>
	</div>

	<input type="hidden" id="helper-mode" name="helper_mode" value="false">
	<div class="form-group">
		<div class="input-group btn-group">
			<span class="input-group-addon slx-ga">{{lang_mode}}</span>
			<a class="btn btn-default" tabindex="2" id="btn-easy-mode" type="button" onclick="switchMode(1)">
				<span class="glyphicon glyphicon-user"></span>
				{{lang_modeEasy}}
			</a>
			<a class="btn btn-default active" tabindex="3" id="btn-advanced-mode" onclick="switchMode(0)">
				<span class="glyphicon glyphicon-education"></span>
				{{lang_modeAdvanced}}
			</a>
		</div>
	</div>

	<div class="form-group" id="advanced-mode">
			<label for="qss">{{lang_screenQss}}</label>
			<textarea tabindex="4" id="qss" name="qss" rows="20" class="form-control">{{qss}}</textarea>
	</div>

	<div id="easy-mode" hidden>
		<div class="form-group">
			<label>{{lang_screenBackground}}</label>
			{{lang_screenBackgroundDescription}}
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenColor}} 1</span>
				<input id="screensaver-background-color-1" tabindex="5" type="text" name="bg_color_1" value="" class="form-control" placeholder="#443">
			</div>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenColor}} 2</span>
				<input id="screensaver-background-color-2" tabindex="6" type="text" name="bg_color_2" value="" class="form-control" placeholder="#000">
			</div>
		</div>

		<div class="form-group">
			<label >{{lang_screenLabel}}</label>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenColor}}</span>
				<input type="text" tabindex="7" name="label_color" value="" class="form-control" placeholder="#f64">
			</div>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenSize}}</span>
				<input type="number" tabindex="8" name="label_size" value="10" class="form-control" placeholder="10">
				<span class="input-group-addon">pt</span>
			</div>
		</div>

		<div class="form-group">
			<label >{{lang_screenClock}}</label>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenColor}}</span>
				<input type="text" tabindex="9" name="clock_color" value="" class="form-control" placeholder="#999">
			</div>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenSize}}</span>
				<input type="number" tabindex="10" name="clock_size" value="20" class="form-control" placeholder="20">
				<span class="input-group-addon">pt</span>
			</div>
		</div>

		<div class="form-group">
			<label >{{lang_screenHeader}}</label>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenColor}}</span>
				<input type="text" tabindex="11" name="header_color" value="" class="form-control" placeholder="#f640">
			</div>
			<div class="input-group">
				<span class="input-group-addon slx-ga">{{lang_screenSize}}</span>
				<input type="number" tabindex="12" name="header_size" value="20" class="form-control" placeholder="20">
				<span class="input-group-addon">pt</span>
			</div>
		</div>
	</div>

	<hr>
	<div class="btn-group">
		<a class="btn btn-default" id="btn-back" tabindex="5"
			{{#edit}}href="?do=sysconfig"{{/edit}}{{^edit}}href="?do=SysConfig&action=addmodule"{{/edit}}>{{lang_back}}</a>
	</div>
	<div class="btn-group pull-right">
		<button type="submit" id="btn-next" tabindex="6" class="btn btn-primary">{{lang_next}} &raquo;</button>
	</div>
	<div class="clearfix"></div>
</form>

<script type="text/javascript">
	function switchMode(mode) {
		// 0 = advanced mode
		// 1 = easy mode
		if (mode === 0) {
			$('#easy-mode').hide();
			$('#advanced-mode').show();
			$('#btn-easy-mode').removeClass('active');
			$('#btn-advanced-mode').addClass('active');
			$('#helper-mode').val('false');
			$('#btn-back').prop('tabindex', 5);
			$('#btn-next').prop('tabindex', 6);
		} else if (mode === 1) {
			$('#advanced-mode').hide();
			$('#easy-mode').show();
			$('#btn-advanced-mode').removeClass('active');
			$('#btn-easy-mode').addClass('active');
			$('#helper-mode').val('true');
			$('#btn-back').prop('tabindex', 13);
			$('#btn-next').prop('tabindex', 14);
		}
	}
</script>