-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenvz_ip_edit.htm
More file actions
46 lines (40 loc) · 2.17 KB
/
openvz_ip_edit.htm
File metadata and controls
46 lines (40 loc) · 2.17 KB
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
<h2><tmpl_var name="list_head_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p>
<div class="panel panel_openvz_ip">
<div class="pnl_formsarea">
<fieldset class="inlineLabels"><legend>IP address</legend>
<div class="ctrlHolder">
<label for="server_id">{tmpl_var name='server_id_txt'}</label>
<select name="server_id" id="server_id" class="selectInput">
{tmpl_var name='server_id'}
</select>
</div>
<div class="ctrlHolder">
<label for="ip_address">{tmpl_var name='ip_address_txt'}</label>
<input name="ip_address" id="ip_address" value="{tmpl_var name='ip_address'}" size="15" maxlength="15" type="text" class="textInput" />
</div>
<div class="ctrlHolder">
<label for="vm_id">{tmpl_var name='vm_id_txt'}</label>
<select name="vm_id" id="vm_id" class="selectInput" disabled="disabled">
{tmpl_var name='vm_id'}
</select>
</div>
<div class="ctrlHolder">
<p class="label">{tmpl_var name='reserved_txt'}</p>
<div class="multiField">
{tmpl_var name='reserved'}
</div>
</div>
</fieldset>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
<div class="buttonHolder buttons">
<button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onclick="submitForm('pageForm','vm/openvz_ip_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
<button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('vm/openvz_ip_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
</div>
</div>
</div>
<script language="JavaScript" type="text/javascript">
var vm_id = jQuery('#vm_id').val();
jQuery('#vm_id').attr({name: 'vm_id_disabled', id: 'vm_id_disabled'});
jQuery('#vm_id_disabled').after('<input type="hidden" name="vm_id" value="'+vm_id+'">');
</script>