summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/templates/ipxe.html
blob: f4b0b4d3d5e63b7f2ea74bb04cde6a3ce69daf07 (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
<form method="post" action="?do=ServerSetup">
	<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="position:absolute;top:-2000px" tabindex="-1">
	<input type="password" name="password_fake" id="password_fake" value="" style="position:absolute;top:-2000px" tabindex="-1">
	<input type="hidden" name="action" value="ipxe">
	<input type="hidden" name="token" value="{{token}}">
	<div class="panel panel-default">
		<div class="panel-heading">
			{{lang_bootMenu}}
		</div>
		<div class="panel-body">
			<p>
				{{lang_bootInfo}}
			</p>
			<br>

			<div class="form-group">
				<strong>{{lang_bootBehavior}}</strong>
				<div class="radio">
					<input type="radio" name="defaultentry" value="net" {{active-net}} id="id-net" {{perms.edit.menu.disabled}}>
					<label for="id-net">bwLehrpool</label>
				</div>
				<div class="radio">
					<input type="radio" name="defaultentry" value="hdd" {{active-hdd}} id="id-hdd" {{perms.edit.menu.disabled}}>
					<label for="id-hdd">{{lang_localHDD}}</label>
				</div>
				<div class="radio">
					<input type="radio" name="defaultentry" value="custom" {{active-custom}} id="id-custom" {{perms.edit.menu.disabled}}>
					<label for="id-custom">{{lang_customEntry}} (&quot;custom&quot;)</label>
				</div>
			</div>

			<div class="form-group">
				<strong>{{lang_menuDisplayTime}}</strong>
				<div class="input-group form-narrow">
					<input type="text" class="form-control" name="timeout" value="{{timeout}}" pattern="\d+" {{perms.edit.menu.readonly}}>
					<span class="input-group-addon">{{lang_seconds}}</span>
				</div>
			</div>

			<div class="form-group">
				<strong>{{lang_masterPassword}}</strong>
				<div class="form-narrow">
					<input type="{{password_type}}" class="form-control" name="masterpassword" value="{{masterpasswordclear}}" {{perms.edit.menu.readonly}}>
				</div>
				<i>{{lang_masterPasswordHelp}}</i>
			</div>

			<div class="form-group">
				<strong>{{lang_menuCustom}}</strong> <a class="btn btn-default btn-xs" data-toggle="modal" data-target="#help-custom"><span class="glyphicon glyphicon-question-sign"></span></a>
				<textarea class="form-control" name="custom" rows="8" {{perms.edit.menu.readonly}}>{{custom}}</textarea>
			</div>
		</div>

		<div class="panel-footer">
			<button class="btn btn-primary pull-right" name="action" value="ipxe" {{perms.edit.menu.disabled}}>{{lang_bootMenuCreate}}</button>
			<div>
				<div class="btn-group" role="group">
					<a class="btn btn-default {{perms.download.disabled}}" href="?do=ServerSetup&amp;action=getimage">
						<span class="glyphicon glyphicon-download-alt"></span>
						{{lang_downloadImage}}
					</a>
					<span class="btn btn-default" data-toggle="modal" data-target="#help-usbimg"><span class="glyphicon glyphicon-question-sign"></span></span>
				</div>
			</div>
		</div>
	</div>
</form>

<div class="modal fade" id="help-custom" tabindex="-1" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				{{lang_menuCustom}}
			</div>
			<div class="modal-body">
				{{lang_menuCustomHint1}}
				<br>{{lang_example}}:
				<pre>LABEL custom
	MENU LABEL ^My Boot Entry
	KERNEL http://1.2.3.4/kernel
	INITRD http://1.2.3.4/initramfs-stage31
	APPEND custom=option
	IPAPPEND 3</pre>
				{{lang_menuCustomHint2}} LABEL <strong>custom</strong>
				{{lang_menuCustomHint3}}
			</div>
		</div>
	</div>
</div>

<div class="modal fade" id="help-usbimg" tabindex="-1" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				{{lang_usbImage}}
			</div>
			<div class="modal-body">
				<p>{{lang_usbImgHelp}}</p>
				<p>
					<b>Linux</b>
					<br>
					{{lang_usbImgHelpLinux}}
				</p>
				<p>
					<b>Windows</b>
					<br>
					{{lang_usbImgHelpWindows}}
				</p>
				<p>
					<a href="https://rufus.akeo.ie/#download">{{lang_downloadRufus}}</a>
				</p>
			</div>
		</div>
	</div>
</div>