-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenvz_ip_edit.htm
More file actions
42 lines (36 loc) · 2.24 KB
/
openvz_ip_edit.htm
File metadata and controls
42 lines (36 loc) · 2.24 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
<div class='page-header'>
<h1><tmpl_var name="list_head_txt"></h1>
</div>
<p><tmpl_var name="list_desc_txt"></p>
<legend>IP address</legend>
<div class="form-group">
<label for="server_id" class="col-sm-3 control-label">{tmpl_var name='server_id_txt'}</label>
<div class="col-sm-9"><select name="server_id" id="server_id" class="form-control">
{tmpl_var name='server_id'}
</select></div>
</div>
<div class="form-group">
<label for="ip_address" class="col-sm-3 control-label">{tmpl_var name='ip_address_txt'}</label>
<div class="col-sm-9"><input type="text" name="ip_address" id="ip_address" value="{tmpl_var name='ip_address'}" class="form-control" /></div></div>
<div class="form-group">
<label for="vm_id" class="col-sm-3 control-label">{tmpl_var name='vm_id_txt'}</label>
<div class="col-sm-9"><select name="vm_id" id="vm_id" class="form-control" disabled="disabled">
{tmpl_var name='vm_id'}
</select></div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">{tmpl_var name='reserved_txt'}</label>
<div class="col-sm-9">
{tmpl_var name='reserved'}
</div>
</div>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
<div class="clear"><div class="right">
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="vm/openvz_ip_edit.php">{tmpl_var name='btn_save_txt'}</button>
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="vm/openvz_ip_list.php">{tmpl_var name='btn_cancel_txt'}</button>
</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>