-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (101 loc) · 3.74 KB
/
index.html
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
<html>
<head>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://raw.githubusercontent.com/caldwell/renderjson/master/renderjson.js"></script>
<script src="https://raw.githubusercontent.com/macek/jquery-serialize-object/master/dist/jquery.serialize-object.min.js"></script>
<script src="/script.js"></script>
</head>
<body>
<div id="tabset">
<ul>
<li><a href="#tab-rule-list">Rule list</a></li>
<li><a href="#tab-create-rule">Create rule</a></li>
<li><a href="#tab-test">Testing</a></li>
</ul>
<div id="tab-rule-list" class="tab">
<div>table: <input class="table-name"/></div>
<div>chain: <input class="chain-name"/></div>
<div>
<button id="rule-list-button" type="button">rule list</button>
</div>
<div id="rule-list-result"></div>
</div>
<div id="tab-create-rule" class="tab">
<span>Table name:</span>
<input class="table-name"/><br/>
<span>Chain name:</span>
<input class="chain-name"/>
<form id="create-rule-form" method="post">
<div id="params-container" class="rule-spec">
<div class="spec-header">Parameters</div>
<div>
<input type="checkbox" class="switch-parameter" name="ignore" data-name="protocol" data-selector="#protocol-input"/>
<span>Protocol:</span>
<span id="protocol-input"></span>
</div>
<div>
<input type="checkbox" class="switch-parameter" name="ignore" data-name="source" data-selector="#source-input"/>
<span>Source IP address:</span>
<span id="source-input"></span>
</div>
<div>
<input type="checkbox" class="switch-parameter" name="ignore" data-name="dest" data-selector="#dest-input"/>
<span>Destination IP address:</span>
<span id="dest-input"></span>
</div>
<div>
<input type="checkbox" class="switch-parameter" name="ignore" data-name="in" data-selector="#in-input"/>
<span>Receiving interface:</span>
<span id="in-input"></span>
</div>
<div>
<input type="checkbox" class="switch-parameter" name="ignore" data-name="out" data-selector="#out-input"/>
<span>Sending interface:</span>
<span id="out-input"></span>
</div>
<div>
<input type="checkbox" class="switch-parameter" name="ignore" data-name="fragment" data-selector="#fragment-input"/>
<span>Fragment:</span>
<span id="fragment-input"></span>
</div>
</div>
<div id="matches-container" class="rule-spec">
<div class="spec-header">Matches</div>
<div id="matches-list"></div>
<div>
<button type="button" id="add-match-button">Add match</button>
</div>
</div>
<div id="target-container" class="rule-spec">
<div>
<span class="spec-header">Target</span>
<input type="text" name="target[name]"/>
</div>
<div>
<button type="button" id="add-target-option-button">Add option</button>
</div>
</div>
<input type="submit" value="Create rule"/>
</form>
<div id="create-rule-result"></div>
</div>
<div id="tab-test" class="tab">
<div>table: <input class="table-name"/></div>
<div>chain: <input class="chain-name"/></div>
<div>
<button id="get-chains-button" type="button">get chains</button>
</div>
<div>
<button id="chain-create-button" type="button">create chain</button>
</div>
<h2>Chains result</h2>
<div id="chains-result"></div>
<h2>Chain create result</h2>
<div id="chain-create-result"></div>
</div>
</div>
</body>
</html>