File: add_edit_user.tmpl

package info (click to toggle)
znc 1.10.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 12,164 kB
  • sloc: cpp: 58,072; javascript: 11,859; python: 1,635; perl: 1,229; tcl: 219; sh: 200; ansic: 187; makefile: 82
file content (460 lines) | stat: -rw-r--r-- 20,565 bytes parent folder | download | duplicates (2)
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<? I18N znc-webadmin ?>
<? AddRow JSLoop HREF=/modfiles/global/webadmin/webadmin.js ?>
<? AddRow CSSLoop HREF=/modfiles/global/webadmin/webadmin.css ?>
<? INC Header.tmpl ?>

<script>
	var CTCPEdit = <? VAR CTCPEdit ?>;
</script>

<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?><? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
	<? INC _csrf_check.tmpl ?>
	<div class="section">
		<input type="hidden" name="submitted" value="1" />

		<!-- Trick Firefox into NOT autofilling password to "change password" field. It will autofill username and password to these useless fields instead. See issue #1163 -->
		<input name="userdummy" type="text" style="display: none"/>
		<input name="passworddummy" type="password" style="display: none"/>

		<h3><? FORMAT "Authentication" ?></h3>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel"><label for="user"><? FORMAT "Username:" ?></label></div>

						<? IF Clone ?>
						<input type="hidden" name="clone" value="<? VAR CloneUsername ?>" />
						<? ENDIF ?>
						<? IF Edit ?>
						<input type="hidden" name="user" value="<? VAR Username ?>" />
						<input id="user" type="text" name="newuser" value="<? VAR Username ?>" class="half" maxlength="128" disabled="disabled" />
						<? ELSE ?>
						<input id="user" type="text" name="user" value="<? VAR Username ?>" class="half" maxlength="128"
							   title="<? FORMAT "Please enter a username." ?>"/>
						<? ENDIF ?>

				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="password"><? FORMAT "Password:" ?></label></div>
					<input id="password" type="password" name="password" class="half"
						   title="<? FORMAT "Please enter a password." ?>" autocomplete="off" />
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="password2"><? FORMAT "Confirm password:" ?></label></div>
					<input id="password2" type="password" name="password2" class="half"
						   title="<? FORMAT "Please re-type the above password." ?>"/>
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="authonlyviamodule"><? FORMAT "Auth only via module:" ?></label></div>
					<input id="authonlyviamodule" type="checkbox" name="authonlyviamodule"
						    title="<? FORMAT "Allow user authentication by external modules only, disabling built-in password authentication." ?>"
						    <? IF AuthOnlyViaModule ?>checked="checked" <? ENDIF ?><? IF !ImAdmin ?>disabled="disabled" <? ENDIF ?>/>
				</div>
				<div class="subsection half">
					<div class="inputlabel"><label for="allowedips"><? FORMAT "Allowed IPs:" ?></label></div>
					<textarea id="allowedips" name="allowedips" cols="70" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ?>
<? ENDLOOP ?>
</textarea>
					<br /><span class="info"><? FORMAT "Leave empty to allow connections from all IPs.<br/>Otherwise, one entry per line, wildcards * and ? are available." ?></span>
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>

	<div class="section">
		<h3><? FORMAT "IRC Information" ?></h3>
		<? IF !Edit ?>
		<span class="info"><? FORMAT "Nick, AltNick, Ident, RealName and QuitMsg can be left empty to use default values." ?></span>
		<? ENDIF ?>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel"><label for="nick"><? FORMAT "Nickname:" ?></label></div>
					<input id="nick" type="text" name="nick" value="<? VAR Nick ?>" class="half" maxlength="128"
						   title="<? FORMAT "Your nickname on IRC." ?>"/>
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="altnick"><? FORMAT "Alt. Nickname:" ?></label></div>
					<input id="altnick" type="text" name="altnick" value="<? VAR AltNick ?>" class="half" maxlength="128"
						   title="<? FORMAT "Your secondary nickname, if the first is not available on IRC." ?>"/>
				</div>
				<div style="clear: both;"></div>
				<div class="subsection">
					<div class="inputlabel"><label for="ident"><? FORMAT "Ident:" ?></label></div>
					<input id="ident" type="text" name="ident" value="<? VAR Ident ?>" class="half" maxlength="128"
						   title="<? FORMAT "The Ident is sent to server as username." ?>"
						   <? IF !IdentEdit ?>disabled<? ENDIF ?> />
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="statusprefix"><? FORMAT "Status prefix:" ?></label></div>
					<input id="statusprefix" type="text" name="statusprefix" value="<? VAR StatusPrefix ?>" class="half" maxlength="5"
						   title="<? FORMAT "The prefix for the status and module queries." ?>"/>
				</div>
				<div style="clear: both;"></div>
				<div class="subsection">
					<div class="inputlabel"><label for="realname"><? FORMAT "Realname:" ?></label></div>
					<input id="realname" type="text" name="realname" value="<? VAR RealName ?>" class="full" maxlength="256"
						   title="<? FORMAT "Your real name." ?>" <? IF !RealNameEdit ?>disabled<? ENDIF ?> />
				</div>
				<div style="clear: both;"></div>

				<? IF BindHostEdit ?>
				<div class="subsection">
					<div class="inputlabel"><label for="bindhost"><? FORMAT "BindHost:" ?></label></div>
					<input id="bindhost" type="text" name="bindhost" value="<? VAR BindHost ?>"/>
				</div>
				<div style="clear: both;"></div>

				<div class="subsection">
					<div class="inputlabel"><label for="dccbindhost"><? FORMAT "DCCBindHost:" ?></label></div>
					<input id="dccbindhost" type="text" name="dccbindhost" value="<? VAR DCCBindHost ?>"/>
				</div>
				<div style="clear: both;"></div>
				<? ENDIF ?>

				<div class="subsection">
					<div class="inputlabel"><label for="quitmsg"><? FORMAT "Quit message:" ?></label></div>
					<input type="text" name="quitmsg" value="<? VAR QuitMsg ?>" class="full" maxlength="256"
						   title="<? FORMAT "You may define a Message shown, when you quit IRC." ?>"
						   <? IF !QuitMsgEdit ?>disabled<? ENDIF ?> />
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>

	<div class="section">
		<h3><? FORMAT "Networks" ?></h3>
		<? IF Edit ?>
		<div class="sectionbg">
			<div class="sectionbody">
				<? IF !NetworkEdit && !NetworkLoop ?>
					<? FORMAT "No networks have been added for you yet." ?>
				<? ELSE ?>
				<table class="sortable networks" data-network-edit="<? IF NetworkEdit ?>1<? ELSE ?>0<? ENDIF ?>">
					<thead>
					<tr>
						<td class="ignore-sort">
						<? IF NetworkEdit ?>
							[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>addnetwork?user=<? VAR Username ESC=URL ?>"><? FORMAT "Add" ?></a>]
						<? ELSE ?>
							&nbsp;
						<? ENDIF ?>
						</td>
					<? IF NetworkLoop ?>
						<th><? FORMAT "Name" ?></th>
						<th><? FORMAT "Clients" ?></th>
						<th><? FORMAT "Current Server" ?></th>
						<th><? FORMAT "Nick" ?></th>
					<? ELSE ?>
						<td><? FORMAT "← Add a network (opens in same page)" ?></td>
					<? ENDIF ?>
					</tr>
					</thead>

					<tbody>
					<? LOOP NetworkLoop SORTASC=Name ?>
					<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
						<td>
							<input type="hidden" name="network" value="<? VAR Name ?>" />
							<span class="network_edit">[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>editnetwork?user=<? VAR Username ESC=URL ?>&amp;network=<? VAR Name ESC=URL ?>"><? FORMAT "Edit" ?></a>]</span>
							<span class="network_delete">[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>delnetwork?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>"><? FORMAT "Del" ?></a>]</span>
						</td>
						<td><? VAR Name ?></td>
						<td><? VAR Clients ?></td>
						<td><? VAR Server DEFAULT="-N/A-" ?></td>
						<td><? VAR IRCNick ?></td>
					</tr>
					<? ENDLOOP ?>
					</tbody>
				</table>
				<? ENDIF ?>
			</div>
		</div>
		<? ELSE ?>
			<? IF Clone ?>
				<span class="info"><? FORMAT "You will be able to add + modify networks here after you have cloned the user." ?></span><br />
			<? ELSE ?>
				<span class="info"><? FORMAT "You will be able to add + modify networks here after you have created the user." ?></span><br />
			<? ENDIF ?>
		<? ENDIF ?>
	</div>

	<div class="section">
		<h3><? FORMAT "Modules" ?></h3>
		<div class="sectionbg">
			<div class="sectionbody">
				<table>
					<thead>
					<tr>
						<th><? FORMAT "Name" ?></th>
						<th><? FORMAT "Arguments" ?></th>
						<th><? FORMAT "Description" ?></th>
						<th><? FORMAT "Loaded globally" ?></th>
						<th><? FORMAT "Loaded by networks" ?></th>
					</tr>
					</thead>
					<tbody>

				<? LOOP ModuleLoop ?>
					<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
						<td class="mod_name">
							<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ?>"> <? IF Wiki ?><a href="https://wiki.znc.in/<? VAR Wiki ?>" target="_blank" class="external"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
						</td>
						<td class="mod_args">
							<? IF Disabled ?>
							<? VAR Args ?>
							<? ELSE ?>
							<input class="third" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>"
							<? IF !HasArgs ?> disabled="disabled"<? ENDIF ?>
							<? IF ArgsHelpText ?> title="<? VAR ArgsHelpText ?>"<? ENDIF ?> />
							<? ENDIF ?>
						</td>
						<td class="mod_descr"><? VAR Description ?></td>
						<td class="center">
							<? IF CanBeLoadedGlobally ?>
								<input type="checkbox" name="loaded_globally" id="loaded_globally_<? VAR Name ?>"
								<? IF LoadedGlobally ?>
									checked="checked"
								<? ENDIF ?>
								disabled="disabled"/>
							<? ENDIF ?>
						</td>
						<td class="center">
							<? IF CanBeLoadedByNetwork ?>
								<input type="checkbox" name="loaded_by_network" id="loaded_by_net_<? VAR Name ?>"
								<? IF LoadedBySomeNetworks && LoadedByAllNetworks ?>
									checked="checked"
								<? ENDIF ?>
								disabled="disabled"/>
								<? IF LoadedBySomeNetworks && !LoadedByAllNetworks ?>
									<script type="text/javascript">
										document.getElementById("loaded_by_net_<? VAR Name ?>").indeterminate = true;
									</script>
								<? ENDIF ?>
							<? ENDIF ?>
						</td>
					</tr>
				<? ENDLOOP ?>

					</tbody>
				</table>
			</div>
		</div>
	</div>

	<div class="section">
		<h3><? FORMAT "Channels" ?></h3>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection third">
					<div class="inputlabel"><label for="chanmodes"><? FORMAT "Default modes:" ?></label></div>
					<input id="chanmodes" type="text" name="chanmodes" value="<? VAR DefaultChanModes ?>" maxlength="32"
						   title="<? FORMAT "These are the default modes ZNC will set when you join an empty channel." ?>"/>
					<br /><span class="info"><? FORMAT "Empty = use standard value" ?></span>
				</div>
				<div class="subsection third">
					<div class="inputlabel"><label for="chanbufsize"><? FORMAT "Buffer size:" ?></label></div>
					<input id="chanbufsize" type="number" name="chanbufsize" value="<? VAR ChanBufferSize ?>" min="0"
						   title="<? FORMAT "This is the amount of lines that the playback buffer will store for channels before dropping off the oldest line. The buffers are stored in the memory by default." ?>"/>
					<br /><span class="info"><? FORMAT "Empty = use standard value" ?></span>
				</div>
			</div>
		</div>
	</div>

	<div class="section">
		<h3><? FORMAT "Queries" ?></h3>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection third">
					<div class="inputlabel"><label for="maxquerybuffers"><? FORMAT "Max buffers:" ?></label></div>
					<input id="maxquerybuffers" type="number" name="maxquerybuffers" value="<? VAR MaxQueryBuffers ?>" class="third" min="0"
						   title="<? FORMAT "Maximum number of query buffers. 0 is unlimited." ?>"/>
				</div>
				<div class="subsection third">
					<div class="inputlabel"><label for="querybufsize"><? FORMAT "Buffer size:" ?></label></div>
					<input id="querybufsize" type="number" name="querybufsize" value="<? VAR QueryBufferSize ?>" min="0"
						   title="<? FORMAT "This is the amount of lines that the playback buffer will store for queries before dropping off the oldest line. The buffers are stored in the memory by default." ?>"/>
					<br /><span class="info"><? FORMAT "Empty = use standard value" ?></span>
				</div>
			</div>
		</div>
	</div>

	<div class="section">
		<h3><? FORMAT "Flags" ?></h3>
		<div class="sectionbg">
			<div class="sectionbody lotsofcheckboxes">
				<? LOOP OptionLoop ?>
				<span class="checkboxandlabel" title="<? VAR Tooltip ?>">
					<input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
					<label for="opt_<? VAR Name ?>"><? VAR DisplayName ?></label>
				</span>
				<? ENDLOOP ?>
				<div style="clear:both;"></div>
			</div>
		</div>
	</div>

	<div class="section">
		<h3><? FORMAT "ZNC Behavior" ?></h3>
		<span class="info"><? FORMAT "Any of the following text boxes can be left empty to use their default value." ?></span>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel"><label for="timestampformat"><? FORMAT "Timestamp format:" ?></label></div>
					<input id="timestampformat" type="text" name="timestampformat" value="<? VAR TimestampFormat ?>" class="full"
						   title="<? FORMAT "The format for the timestamps used in buffers, for example [%H:%M:%S]. This setting is ignored in new IRC clients, which use server-time. If your client supports server-time, change timestamp format in client settings instead." ?>"/>
				</div>
				<div class="subsection half">
					<div class="inputlabel"><label for="timezone"><? FORMAT "Timezone:" ?></label></div>
					<input id="timezone" type="text" name="timezone" value="<? VAR Timezone ?>" list="timezone_list"
						   title="Select your timezone." />
					<br /><span class="info"><? FORMAT "E.g. <code>Europe/Berlin</code>, or <code>GMT-6</code>" ?></span>
					<datalist id="timezone_list">
						<? LOOP TZLoop ?>
						<option value="<? VAR TZ ?>"/>
						<? ENDLOOP ?>
					</datalist>
				</div>
				<div style="clear:both;"></div>
				<div class="subsection" title="<? FORMAT "Character encoding used between IRC client and ZNC." ?>">
					<div class="inputlabel"><? FORMAT "Client encoding:" ?></div>
					<? INC encoding_settings.tmpl ?>
				</div>
				<div style="clear:both;"></div>
				<div class="subsection">
					<div class="inputlabel"><label for="jointries"><? FORMAT "Join tries:" ?></label></div>
					<input id="jointries" type="number" name="jointries" value="<? VAR JoinTries ?>" class="third" min="0"
						   title="<? FORMAT "This defines how many times ZNC tries to join a channel, if the first join failed, e.g. due to channel mode +i/+k or if you are banned." ?>"/>
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="maxjoins"><? FORMAT "Join speed:" ?></label></div>
					<input id="maxjoins" type="number" name="maxjoins" value="<? VAR MaxJoins ?>" class="third" min="0"
					       title="<? FORMAT "How many channels are joined in one JOIN command. 0 is unlimited (default). Set to small positive value if you get disconnected with “Max SendQ Exceeded”" ?>"/>
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="notraffictimeout"><? FORMAT "Timeout before reconnect:" ?></label></div>
					<input id="notraffictimeout" type="number" name="notraffictimeout" value="<? VAR NoTrafficTimeout ?>" class="third" min="30"
					       title="<? FORMAT "How much time ZNC waits (in seconds) until it receives something from network or declares the connection timeout. This happens after attempts to ping the peer." ?>"/>
				</div>
				<div class="subsection">
					<div class="inputlabel"><label for="maxnetworks"><? FORMAT "Max IRC networks number:" ?></label></div>
					<input type="number" name="maxnetworks" value="<? VAR MaxNetworks ?>" class="third" min="0"
					       title="<? FORMAT "Maximum number of IRC networks allowed for this user." ?>" <? IF !ImAdmin ?>disabled="disabled"<? ENDIF ?> />
				</div>

				<? SETBLOCK Substitutions_Link ?><a href="https://wiki.znc.in/ExpandString" target="_blank" class="external"><? FORMAT "Substitutions" ?></a><? ENDSETBLOCK ?>
				<div class="subsection half" id="ctcpreplies_plain">
					<div class="inputlabel"><label for="ctcpreplies_text"><? FORMAT "CTCP replies:" ?></label></div>
					<div><textarea name="ctcpreplies" cols="70" rows="3" id="ctcpreplies_text" <? IF !CTCPEdit ?>disabled<? ENDIF ?>><? LOOP CTCPLoop ?><? VAR CTCP ?>
<? ENDLOOP ?>
</textarea></div>
					<br /><span class="info"><? FORMAT "One reply per line. Example: <code>TIME Buy a watch!</code>" ?></span>
					<br /><span class="info"><? FORMAT "{1} are available" "Substitutions_Link ESC=" ?></span>
				</div>
				<div class="subsection" id="ctcpreplies_js" style="display:none" data-placeholder="<? FORMAT "Empty value means this CTCP request will be ignored" ?>">
					<div class="inputlabel"><? FORMAT "CTCP replies:" ?></div>
					<div>
						<table style="width:100%">
							<thead>
								<tr>
									<th><? FORMAT "Request" ?></th>
									<th><? FORMAT "Response" ?></th>
									<? IF CTCPEdit ?>
									<th/>
									<? ENDIF ?>
								</tr>
							</thead>
							<tbody id="ctcpreplies_tbody"/>
						</table>
						<? IF CTCPEdit ?><input type="button" value="<? FORMAT "Add" ?>" id="ctcpreplies_add"/><? ENDIF ?>
						<span class="info"><? FORMAT "{1} are available" "Substitutions_Link ESC=" ?></span>
						<datalist id="ctcpreplies_list">
							<option value="PING"/>
							<option value="FINGER"/>
							<option value="CLIENTINFO"/>
							<option value="USERINFO"/>
							<option value="VERSION"/>
							<option value="SOURCE"/>
							<option value="TIME"/>
							<option value="PAGE"/>
							<option value="DCC"/>
							<option value="UPTIME"/>
						</datalist>
					</div>
				</div>
				<script type="text/javascript">ctcpreplies_init(jQuery);</script>

				<div class="subsection">
					<div class="inputlabel"><label for="skin"><? FORMAT "Skin:" ?></label></div>

						<? IF SkinLoop ROWS > 1 ?>
						<select id="skin" name="skin">
							<option value=""><? FORMAT "- Global -" ?></option>
							<? LOOP SkinLoop ?>
							<option value="<? VAR Name ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? IF Name == "_default_" ?><? FORMAT "Default" ?><? ELSE ?><? VAR Name ?><? ENDIF ?></option>
							<? ENDLOOP ?>
						</select>
						<? ELSE ?>
						<? FORMAT "No other skins found" ?>
						<? ENDIF ?>

				</div>

				<div class="subsection">
					<div class="inputlabel"><label for="language"><? FORMAT "Language:" ?></label></div>

					<? IF HaveI18N ?>
					<select id="language" name="language">
						<? LOOP LanguageLoop ?>
						<option value="<? VAR Code ?>" <? IF Language TOP == *Code ?>selected="selected"<? ENDIF ?>><? VAR Name ?></option>
						<? ENDLOOP ?>
					</select>
					<? ELSE ?>
					ZNC is compiled without i18n support
					<? ENDIF ?>
				</div>

				<div style="clear: both;"></div>
			</div>
		</div>
	</div>

	<? LOOP EmbeddedModuleLoop ?>
		<? IF Embed ?>
		<div class="section">
			<h3><? FORMAT "Module {1}" ModName ?></h3>
			<? INC *Embed ?>
		</div>
		<? ENDIF ?>
	<? ENDLOOP ?>

	<div class="submitline">
		<? IF ImAdmin ?>
			<? IF Edit ?>
				<input type="submit" name="submit_return" value="<? FORMAT "Save and return" ?>"/>
				<input type="submit" name="submit_continue" value="<? FORMAT "Save and continue" ?>"/>
			<? ELSE IF Clone ?>
				<input type="submit" name="submit_return" value="<? FORMAT "Clone and return" ?>"/>
				<input type="submit" name="submit_continue" value="<? FORMAT "Clone and continue" ?>"/>
			<? ELSE ?>
				<input type="submit" name="submit_return" value="<? FORMAT "Create and return" ?>"/>
				<input type="submit" name="submit_continue" value="<? FORMAT "Create and continue" ?>"/>
			<? ENDIF ?>
		<? ELSE ?>
			<? IF Edit ?>
				<input type="submit" value="<? FORMAT "Save" ?>"/>
			<? ELSE IF Clone ?>
				<input type="submit" value="<? FORMAT "Clone" ?>"/>
			<? ELSE ?>
				<input type="submit" value="<? FORMAT "Create" ?>"/>
			<? ENDIF ?>
		<? ENDIF ?>
	</div>
</form>
<script>make_sortable();</script>

<? INC Footer.tmpl ?>