summaryrefslogtreecommitdiffstats
path: root/modules-available/eventlog/lang
Commit message (Expand)AuthorAgeFilesLines
* [eventlog] added permission to view the logUdo Walter2017-12-283-1/+7
* [eventlog] changed module name in navigation and site title back to "Server-Log"Christian Hofmaier2017-10-134-4/+4
* [baseconfig][baseconfig_partitions_cdn][eventlog][minilinux][permissionmanage...Christian Hofmaier2017-09-292-2/+2
* Translating module strings and custom sections worksSimon Rettberg2016-05-102-1/+4
* Work on translations: templates and messages workSimon Rettberg2016-05-045-8/+6Star
* WIPSimon Rettberg2016-05-034-0/+26
.git/commit/modules-available/serversetup-bwlp/templates/menu-edit.html?h=v3.8&id=35578a5c327baa803e600700ccaee627d4724339'>35578a5c ^
2e78eec2 ^


2e78eec2 ^


e778ad16 ^
2e78eec2 ^
35578a5c ^
e778ad16 ^
35578a5c ^





2e78eec2 ^




35578a5c ^
2e78eec2 ^


























35578a5c ^
2e78eec2 ^
















35578a5c ^



e778ad16 ^
35578a5c ^




e778ad16 ^
35578a5c ^










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
132
133
134
135
136
137
138
139
140













                                                                              
 


































                                                                                                                                                          
                                                         


                                                                         


                                                                          
                                                                                       
                                                    
                                                                         
                                                                                                                                                         





                                                                                                                                                     




                                                                                                                                                                            
 


























                                                                                                                                                         
 
















                                                                                                                                                                               



                                                                  
                                           




                                                                            
                                                                               










                                                                              
<h2>{{lang_editMenuHead}}</h2>

<div class="panel panel-default">
	<div class="panel-heading">
		{{title}}
		{{^title}}
			{{lang_newMenu}}
		{{/title}}
	</div>
	<div class="panel-body list-group">
		<form method="post" action="?do=serversetup">
			<input type="hidden" name="token" value="{{token}}">
			<input type="hidden" name="action" value="savemenu">
			<input type="hidden" name="menuid" value="{{menuid}}">

			<div class="row list-group-item">
				<div class="col-sm-3">
					<label for="panel-title">{{lang_menuTitle}}</label>
				</div>
				<div class="col-sm-9">
					<input class="form-control" name="title" id="panel-title" type="text" value="{{title}}" {{readonly}}>
				</div>
			</div>
			<div class="row list-group-item">
				<div class="col-sm-3">
					<label for="panel-timeout">{{lang_menuTimeout}}</label>
				</div>
				<div class="col-sm-9">
					<div class="input-group">
						<input class="form-control" name="timeout" id="panel-timeout" type="number" min="0" max="9999"
								 value="{{timeout}}" {{readonly}}>
						<span class="input-group-addon">{{lang_seconds}}</span>
					</div>
				</div>
			</div>
			<div class="row list-group-item">
				<div class="col-sm-3">
				</div>
				<div class="col-sm-9">
					<div class="checkbox">
						<input name="defmenu" id="panel-defmenu" type="checkbox" {{#isdefault}}checked{{/isdefault}} {{disabled}}>
						<label for="panel-defmenu">{{lang_defaultMenu}}</label>
					</div>
				</div>
			</div>
			<div>
				<table class="table">
					<thead>
					<tr>
						<th></th>
						<th></th>
						<th>{{lang_entryId}}</th>
						<th>{{lang_title}}</th>
						<th>{{lang_hotkey}}</th>
						<th>{{lang_password}}</th>
					</tr>
					</thead>
					<tbody id="table-body" style="overflow: auto;">
					{{#entries}}
						<tr id="{{menuentryid}}">
							<input type="hidden" class="sort-val" name="entry[{{menuentryid}}][sortval]" value="{{sortval}}">
							<td class="drag-handler" style="cursor: pointer;text-align: center; vertical-align: middle;">
								<span class="glyphicon glyphicon-th-list"></span>
							</td>

							<td class="slx-smallcol" style="text-align: center; vertical-align: middle;">
								<div class="radio radio-inline" style="margin: 0px;">
									<input type="radio" name="defaultentry" value="{{menuentryid}}"
											 {{#isdefault}}checked{{/isdefault}} {{perms.ipxe.menu.edit.disabled}} {{disabled}}>
									<label></label>
								</div>
							</td>

							<td class="text-nowrap">
								{{#entryid}}
									<select class="form-control" name="entry[{{menuentryid}}][entryid]" {{readonly}}>
										<option value="">{{lang_spacer}}</option>
										{{#entrylist}}
											<option value="{{entryid}}" {{selected}}>{{title}}</option>
										{{/entrylist}}
									</select>
								{{/entryid}}
								{{^entryid}}
									<i>{{lang_spacer}}</i>
								{{/entryid}}
							</td>
							<td {{^entryid}}colspan="2"{{/entryid}}>
								<input class="form-control" name="entry[{{menuentryid}}][title]" value="{{title}}"
										 maxlength="100" {{readonly}}>
							</td>
							{{#entryid}}
								<td>
									<select class="form-control" name="entry[{{menuentryid}}][hotkey]" {{readonly}}>
										<option value="">{{lang_none}}</option>
										{{#keys}}
											<option {{selected}}>{{key}}</option>
										{{/keys}}
									</select>
								</td>
							{{/entryid}}

							<td>
								<input class="form-control" name="entry[{{menuentryid}}][plainpass]" id="panel-passwd" type="{{password_type}}"
										 value="{{plainpass}}" {{readonly}}>
							</td>
						</tr>
					{{/entries}}
					</tbody>
				</table>
			</div>
			<div class="text-right">
				<button type="submit" class="btn btn-primary" {{disabled}}>
					<span class="glyphicon glyphicon-floppy-disk"></span>
					{{lang_save}}
				</button>
			</div>
		</form>
	</div>
</div>

<script type="text/javascript">
	document.addEventListener("DOMContentLoaded", function() {
		$('#table-body').sortable({
			opacity: 0.8,
			handle: '.drag-handler',
			start: function(evt, ui) {
				ui.placeholder.css("visibility", "visible");
				ui.placeholder.css("opacity", "0.152");
				ui.placeholder.css("background-color", "#ddd");
			},
			stop: function() {
				var startValue = 1;
				$('.sort-val').each(function(index, element) {
					element.value = startValue * 10;
					startValue++;
				});
			}
		});
	});
</script>