-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaddCustomNetworkForm.php
More file actions
42 lines (36 loc) · 1.53 KB
/
addCustomNetworkForm.php
File metadata and controls
42 lines (36 loc) · 1.53 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
<form action="./" method="get" class="network-form">
<input type="hidden" name="action" value="addNewNetwork">
<input type="hidden" name="format" value="hex">
<div class="form-group">
<label for="network">Network:</label>
<input id="network" type="text" name="newNetwork" onkeyup="isNetworkPossible()" onblur="isNetworkPossible()">
<span class="hint">example: 2001:db8:ab00::</span>
</div>
<div class="form-group">
<label for="mask">netmask:</label>
<input id="mask" type="text" name="newMask" value="0" onkeyup="isNetworkPossible()" onblur="isNetworkPossible()">
<span class="hint">example: 40</span>
</div>
<div class="form-group">
<label for="description">description:</label>
<input id="description" type="text" name="newDescription">
<span class="hint">example: Headquarter Backbone</span>
</div>
<div class="form-group">
<label for="color">color:</label>
<div class="color-input">
<script type="text/javascript" src="jscolor/jscolor.js"></script>
<input id="color" type="text" class="color {hash:true,pickerPosition:'right',pickerClosable:true}" name="newColour" value="#FFFFAA">
</div>
<span class="hint"></span>
</div>
<div class="form-group">
<label for="root">root:</label>
<input id="root" type="checkbox" name="root" value="1">
<span class="hint">If you select this network as "root" it will show up into the left panel.</span>
</div>
<div class="form-group submit-group">
<input id="save" type="submit" value="Save" disabled="disabled">
<span id="hint" class="hint"></span>
</div>
</form>