summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/templates/menu-assign-location.html
blob: 9e1281669e0b367fb9c136580085241dfe897fb6 (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
<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 id="m-default" type="radio" name="menuid" value="0" {{default_selected}}>
					<label></label>
				</div>
			</td>
			<td>
				<label style="font-weight:normal" for="m-default"><i>{{lang_useDefaultMenu}}</i></label>
			</td>
			<td>
				{{defaultMenu.title}}
				<div class="small text-muted">{{defaultMenu.defaultEntry.title}}</div>
			</td>
		</tr>
		{{#list}}
			<tr>
				<td>
					<div class="radio radio-inline">
						<input id="m-{{menuid}}" type="radio" name="menuid" value="{{menuid}}" {{menu_selected}}>
						<label></label>
					</div>
				</td>
				<td>
					<label style="font-weight:normal;margin-bottom:0" for="m-{{menuid}}">{{title}}</label>
					<div class="small text-muted">{{default_entry_title}}</div>
				</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>