summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/templates/menu-assign-location.html
blob: 077d137e7c4d1f8eb1fd5c53ed2b6eff4b4cb665 (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
<h2>{{lang_assignMenuToLocation}}</h2>
<h3>{{locationName}}</h3>

<form method="post" action="?do=serversetup">

	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="savelocation">
	<input type="hidden" name="locationid" value="{{locationid}}">
	<table class="table">
		<thead>
		<tr>
			<th class="slx-smallcol"></th>
			<th>{{lang_menuTitle}}</th>
			<th class="slx-smallcol">{{lang_menuEntryOverride}}</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>
				<div class="radio radio-inline">
					<input type="radio" name="menuid" value="0" {{default_selected}}>
					<label></label>
				</div>
			</td>
			<td>
				<i>{{lang_useDefaultMenu}}</i>
			</td>
			<td></td>
		</tr>
		{{#list}}
			<tr>
				<td>
					<div class="radio radio-inline">
						<input type="radio" name="menuid" value="{{menuid}}" {{menu_selected}}>
						<label></label>
					</div>
				</td>
				<td>
					{{title}}
				</td>
				<td class="text-right">
					<select name="defaultentryid-{{menuid}}" class="form-control">
						<option value="0" style="font-style:italic">{{lang_useDefaultMenuEntry}}</option>
						{{#entries}}
							<option value="{{id}}" {{selected}}>{{title}}</option>
						{{/entries}}
					</select>
				</td>
			</tr>
		{{/list}}
		</tbody>
	</table>

	<div class="pull-right">
		<button type="submit" class="btn btn-primary">
			<span class="glyphicon glyphicon-floppy-disk"></span>
			{{lang_save}}
		</button>
	</div>

</form>

<div class="clearfix"></div>

<script>
	function deleteMenu(menuid) {
		$("#delete-menu-id").val(menuid);
	}
</script>