-
Notifications
You must be signed in to change notification settings - Fork 3
/
drools-scenario-popup.html
482 lines (424 loc) · 18.1 KB
/
drools-scenario-popup.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jBPM Suite</title>
<link href="css/kie-main.css" rel="stylesheet" media="screen, print">
<!-- debugging tool -->
<link rel="stylesheet" href="https://cdn.rawgit.com/srambach/classbxr/5456df40/css/classbxr.css">
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- For the graphs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.23.1/js/patternfly.min.js"></script>
</head>
<body>
<div class="kie-page">
<a class="kie-skiplink" href="#kie-main-content">Skip to main content</a>
<!-- Masthead -->
<nav class="kie-page__masthead navbar navbar-default navbar-pf " role="navigation">
<div class="navbar-header ">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand">
<img class="kie-brand-icon" src="images/kie-ide.png" alt="JBoss BPM Suite"/>
</a>
</div>
<div class="collapse navbar-collapse navbar-collapse-1">
<ul class="nav navbar-nav navbar-iconic">
<li>
<a class="nav-item-iconic" href="bpm-home-rh.html" title="Home"><i class="pficon pficon-home"></i></a>
</li>
</ul>
<ul class="nav navbar-nav kie-yamm">
<li class="dropdown kie-yamm--fw">
<a class="dropdown-toggle nav-item-iconic" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="true" tabindex="0">
Menu
<span class="caret"></span>
</a>
<ul class="dropdown-menu kie-yamm__dropdown-menu" aria-labelledby="dropdownMenu2">
<!-- mega menu sections -->
<li class="kie-yamm__section col-xs-12 col-md-3">
<h3 class="kie-yamm__title">Design</h3>
<ul class="kie-yamm__subsection">
<li><a href="#">Projects</a></li>
<li><a href="#">Dashboards</a></li>
</ul>
</li>
<li class="kie-yamm__section col-xs-12 col-md-3">
<h3 class="kie-yamm__title">Configure</h3>
<ul class="kie-yamm__subsection">
<li><a href="#">Deployments</a></li>
<li><a href="#">Execution Servers</a></li>
</ul>
</li>
<li class="kie-yamm__section col-xs-12 col-md-3 ">
<h3 class="kie-yamm__title">Manage</h3>
<ul class="kie-yamm__subsection">
<li><a href="#">Process Definitions</a></li>
<li><a href="#">Process Instances</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</li>
<li class="kie-yamm__section col-xs-12 col-md-3">
<h3 class="kie-yamm__title">Track</h3>
<ul class="kie-yamm__subsection">
<li><a href="#">Task Lists</a></li>
<li><a href="#">Task Reports</a></li>
<li><a href="#">Process Reports</a></li>
<li><a href="#">Business Dashboards</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right navbar-iconic">
<li class="dropdown">
<a href="#" class="dropdown-toggle nav-item-iconic" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="true">
<span title="Applications" class="fa fa-th"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu3">
<li><a href="">Application 1</a></li>
<li><a href="">Application 2</a></li>
<li><a href="">Application 3</a></li>
</ul>
</li>
<li>
<a class="nav-item-iconic" href="#help" data-toggle="modal" title="Help"><i class="fa fa-question"></i></a>
</li>
<li>
<a class="nav-item-iconic" href="settings.html" title="Settings"><i class="pficon pficon-equalizer"></i></a>
</li>
<li class="dropdown">
<a class="dropdown-toggle nav-item-iconic" id="dropdownMenu4" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="true" tabindex="0">
<span title="Username" class="pficon pficon-user"></span>
Brian Johnson
<span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu4">
<li><a href="#about" data-toggle="modal">About</a></li>
<li><a href="#">Log Out</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<main role="main" id="kie-main-content" tabindex="-1" class="kie-page__content ">
<div class="container-fluid ">
<!-- Breadcrumb row -->
<div class="row">
<div class="col-xs-12">
<ol class="breadcrumb">
<li>
<a href="#">Spaces</a>
</li>
<li>
<a href="#">Space Name</a>
</li>
<li>
<a href="#">Mortgage Application</a>
</li>
<li class="active"> <strong>Scenario Test1</strong>
</li>
</ol>
</div>
</div>
<!-- Content - Asset List -->
<div class="row kie-row--tabcontent">
<div class="col-xs-12">
<a href="#confirmation" data-toggle="modal" data-target="#dataTypesList" title="Confirmation">Test the data types list popup</a>
</div>
</div>
</div>
</main>
</div><!-- kie-page -->
<!-- modals -->
<!-- DROOLS 3053 DIALOGS BELOW -->
<div class="modal fade" tabindex="-1" role="dialog" id="dataTypesList">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="pficon pficon-close"></span>
</button>
<h4 class="modal-title">"favRecipes" (recipes) [list]</h4>
</div>
<div class="modal-body">
<label for="kie-search" class="sr-only">Select Data Object</label>
<div>
<button class="btn btn-default pull-right" type="button" style="margin-left: 2em;">Add</button>
<!-- search box -->
<form role="form" class="search-pf has-button">
<div class="form-group has-clear">
<div class="search-pf-input-group">
<!-- <label for="search1" class="sr-only">Search</label> -->
<input id="search1" type="search" class="form-control" placeholder="Search">
<button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
</div>
</div>
<div class="form-group">
<button class="btn btn-default" type="button"><span class="fa fa-search"></span></button>
</div>
</form>
<script>
(function ($) {
$(document).ready(function () {
// Hide the clear button if the search input is empty
$(".search-pf .has-clear .clear").each(function () {
if (!$(this).prev('.form-control').val()) {
$(this).hide();
}
});
// Show the clear button upon entering text in the search input
$(".search-pf .has-clear .form-control").keyup(function () {
var t = $(this);
t.next('button').toggle(Boolean(t.val()));
});
// Upon clicking the clear button, empty the entered text and hide the clear button
$(".search-pf .has-clear .clear").click(function () {
$(this).prev('.form-control').val('').focus();
$(this).hide();
});
});
})(jQuery);
</script>
<!-- end search box -->
</div><!-- end outlined data object box -->
<br/>
<!-- start of new stuff -->
<style>
.list-view-pf-description {
flex-grow: 0;
}
.list-view-pf-body {
/* justify-content: space-between; */
}
.list-view-pf-actions {
min-height: 44px;
min-width: 44px;
margin: 0;
display: flex;
}
.list-view-pf-view {
margin-top: 0;
}
.list-view-pf-main-info {
padding-top: 0;
padding-bottom: 0;
}
</style>
<div class="list-group">
<!-- <div class="list-group-item"> -->
<div class="list-group-item"> <!--list-view-pf-->
<div class="list-view-pf-body">
<div class="list-view-pf-description">
Recipe1 [Parsley:30, Garlic:40]
</div>
</div>
<div class="list-view-pf-actions">
<button class="btn btn-link"><span class="fa fa-trash"></span></button>
<button class="btn btn-link"><span class="fa fa-ellipsis-v"></span></button>
</div>
</div>
<div class="list-group-item">
<label for="kie-name">Name (recipe)</label>
<input id="kie-name" type="text" class="form-control" placeholder="Name" value="Recipe2">
<!-- end of new stuff -->
<br/>
<div id="pf-list-simple-expansion" class="list-group tree-list-view-pf-view "
data-field="listContainer">
<!-- ingredients list, expanding list item -->
<div class="list-group-item selected" data-field="listGroupItem" id="listGroupItem-ingredients">
<div class="list-group-item-header list-view-pf-expand-active" data-field="listGroupItemHeader">
<div class="list-view-pf-expand">
<span class="fa fa-angle-right fa-angle-down" data-field="faAngleRight"></span>
</div>
<div class="list-view-pf-main-info" data-field="fullClassName">
Ingredients (Ingredient) [List]
</div>
<div class="list-group-item-container container-fluid" data-field="listGroupItemContainer">
<!-- LIST OF INGREDIENTS -->
<div class="list-group list-view-pf list-view-pf-view">
<div class="list-group-item list-view-pf-item list-pf-title">
<div class="list-view-pf-body">
<div class="list-view-pf-description">Name</div>
<div class="list-view-pf-additional-info">Quantity</div>
</div>
<div class="list-view-pf-actions">
<button class="btn btn-link"><span class="fa fa-plus"></span></button>
</div>
</div>
<div class="list-group-item list-view-pf-item">
<div class="list-view-pf-body">
<div class="list-view-pf-description">Parsley</div>
<div class="list-view-pf-additional-info">30</div>
</div>
<div class="list-view-pf-actions">
<button class="btn btn-link"><span class="fa fa-trash"></span></button>
</div>
</div>
<div class="list-group-item list-view-pf-item">
<div class="list-view-pf-body">
<div class="list-view-pf-description"><input></div>
<div class="list-view-pf-additional-info"><input></div>
</div>
<div class="list-view-pf-actions">
<button class="btn btn-link"><span class="fa fa-trash"></span></button>
</div>
</div>
</div>
<!-- END OF LIST OF INGREDIENTS -->
</div>
</div>
<!-- end of expanding list item for ingredients list -->
</div>
</div>
<!-- JS for list expansion -->
<script>
$(document).ready(function () {
// Row Checkbox Selection
$("#pf-list-simple-expansion input[type='checkbox']").change(function (e) {
if ($(this).is(":checked")) {
$(this).closest('.list-group-item').addClass("active");
} else {
$(this).closest('.list-group-item').removeClass("active");
}
});
// toggle dropdown menu
$("#pf-list-simple-expansion .list-view-pf-actions").on('show.bs.dropdown', function () {
var $this = $(this);
var $dropdown = $this.find('.dropdown');
var space = $(window).height() - $dropdown[0].getBoundingClientRect().top - $this.find('.dropdown-menu').outerHeight(true);
$dropdown.toggleClass('dropup', space < 10);
});
// click the list-view heading then expand a row
$("#pf-list-simple-expansion .list-group-item-header").click(function (event) {
if (!$(event.target).is("button, a, input, .fa-ellipsis-v")) {
$(this).find(".fa-angle-right").toggleClass("fa-angle-down")
.end().parent().toggleClass("list-view-pf-expand-active")
.find(".list-group-item-container").toggleClass("hidden");
} else {
}
})
// click the close button, hide the expand row and remove the active status
$("#pf-list-simple-expansion .list-group-item-container .close").on("click", function () {
$(this).parent().addClass("hidden")
.parent().removeClass("list-view-pf-expand-active")
.find(".fa-angle-right").removeClass("fa-angle-down");
})
});
</script>
<!-- end JS for list expansion -->
<!-- </div> this one -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary">Insert Values</button>
</div>
</div>
</div>
</div>
</div>
<!-- DROOLS 3053 DIALOGS ABOVE -->
<div class="modal fade" id="help">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
<span class="pficon pficon-close"></span>
</button>
<h4 class="modal-title">Help</h4>
</div>
<div class="modal-body">
<div><img src="img/help.png" alt="" style="width: 568px;"/></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- About Modal -->
<div class="modal fade" id="about" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content about-modal-pf">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
<span class="pficon pficon-close"></span>
</button>
</div>
<div class="modal-body">
<h1 id="aboutModalTitle">
<img class="kie-brand-icon" src="images/jbpm_logo_noshadow_100px.png" alt="JBoss BPM Suite"/>
</h1>
<div class="product-versions-pf">
<ul class="list-unstyled" id="aboutModalVersions">
<li><strong>Version</strong> 0.0</li>
</ul>
</div>
<div class="trademark-pf">
jBPM is open source software, released under the <br>
<strong>Apache Software License 2.0</strong>.
</div>
</div>
</div>
</div>
</div>
<!-- END About Modal -->
<div class="modal fade" id="preferences">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
<span class="pficon pficon-close"></span>
</button>
<h4 class="modal-title">Preferences</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label class="control-label">Language</label>
<select class="form-control">
<option value="default">English</option>
<option value="de">German</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="ja">Japanese</option>
<option value="pt_BR">Portuguese</option>
<option value="zh_CN">Chinese (Simplified)</option>
</select>
</div>
<div class="form-group">
<label class="control-label">View Mode</label>
<div class="radio">
<label><input type="radio" name="optradio">Basic</label>
</div>
<div class="radio">
<label><input type="radio" name="optradio">Compact</label>
</div>
<div class="radio">
<label><input type="radio" name="optradio">Advanced</label>
</div>
</div>
<div class="form-group">
<label class="control-label">Layouts</label>
<p><a href="#">Reset Perspective Layouts</a></p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
</body>
</html>