-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathhelp.html
141 lines (120 loc) · 3.42 KB
/
help.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PAN-PHP-FRAMEWORK Utilities Helper</title>
<script src="../common/html/jquery.min.js"></script>
<link href="../common/html/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script src="../common/html/bootstrap.min.js"></script>
<script type="text/javascript" src="res/utils.js"></script>
<style>
body {
overflow-x: hidden;
}
nav {
margin-top: 10px;
}
nav, .content {
margin-left: 10px;
}
.table {
margin-left: 10px;
width: 98%;
word-wrap: break-word;
}
.content {
display: none;
}
.table tbody td {
word-wrap: break-word;
}
.action-arguments span {
white-space: nowrap;
}
.action-choices {
white-space: nowrap;
}
.action-name, .filter-name, .action-arg-type {
}
form {
margin: 10px 0 10px 0;
}
.expander {
cursor: pointer;
}
</style>
</head>
<body>
<nav>
<ul class="nav nav-pills">
<li class="active"><a class="menu-btn" data-key="actions" href="#">Actions</a></li>
<li><a href="#" data-key="arguments" class="menu-btn">Arguments</a></li>
<li><a href="#" data-key="filters" class="menu-btn">Filters</a></li>
</ul>
</nav>
<div id="actions" class="content">
<form class="form-inline">
<div class="form-group">
<label for="actions-select">Select</label>
<select id="actions-select" name="actions-select" class="form-control">
</select>
</div>
</form>
<table id="action-table" class="table table table-striped">
<thead>
<tr>
<th>name</th>
<th>Arguments</th>
<th>Arg. Type</th>
<th>Default Value</th>
<th>Choices</th>
<th>Description</th>
</tr>
</thead>
<tbody id="action-table-content">
</tbody>
</table>
</div>
<div id="filters" class="content">
<form class="form-inline">
<div class="form-group">
<label for="filters-select">Select</label>
<select id="filters-select" name="filters-select" class="form-control">
</select>
</div>
</form>
<table id="filter-table" class="table table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Operator</th>
<th>Description</th>
</tr>
</thead>
<tbody id="filter-table-content">
</tbody>
</table>
</div>
<div id="arguments" class="content">
</div>
<script type="text/javascript" src="res/data.js"></script>
<script type="text/javascript" src="res/action.js"></script>
<script type="text/javascript" src="res/filter.js"></script>
<script type="text/javascript">
$('.menu-btn').on('click', function () {
$('.nav li').removeClass('active');
var selected = $(this).data('key');
$(this).parent('li').addClass('active');
if (selected == 'actions') {
displayActionWindow();
} else if (selected == 'filters') {
displayFilterWindow();
}
$('.content').hide();
$('#' + selected).show();
});
displayActionWindow();
$('#actions').show();
</script>
</body>
</html>