forked from MacKentoch/easyFormGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_StepWay.html
760 lines (583 loc) · 35.2 KB
/
index_StepWay.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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
<!DOCTYPE html>
<html lang="en" ng-app="ngwfApp" ng-controller="ngwfMainController">
<head>
<title>Easy form generator</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="create amazing forms without coding : form editor based on angular formly">
<meta name="author" content="Erwan Datin (MacKentoch)">
<!-- IMPORTANT : angular js lib (here for better result with ng-cloak) -->
<script type="text/javascript" src="./public/lib/js/angular.min.js"></script>
<!-- Bootstrap core CSS -->
<link href="./public/lib/css/bootstrap.min.css" rel="stylesheet">
<!-- <link href="/public/lib/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet"> -->
<!-- font-awesome -->
<link href="./public/lib/css/font-awesome.min.css" rel="stylesheet">
<!-- animate -->
<link href="./public/lib/css/animate.min.css" rel="stylesheet">
<!-- angular loading bar css-->
<!-- <link href="./public/lib/css/loading-bar.min.css" rel="stylesheet"> -->
<!-- angulat loading bar js -->
<!-- <script type="text/javascript" src="./public/lib/js/loading-bar.min.js"></script> -->
<!-- textAngular -->
<link rel='stylesheet' href='./public/lib/css/textAngular.min.css'>
<!-- taoster angular -->
<link rel='stylesheet' href='./public/lib/css/toaster.min.css'>
<!-- nya select bootstrap -->
<link rel='stylesheet' href='./public/lib/css/nya-bs-select.min.css'>
<!-- Custom styles for this template -->
<link href="./public/css/eda.stepway.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="./public/lib/html5shiv/dist/html5shiv.min.js"></script>
<script src="./public/lib/respondJS/dest/respond.min.js"></script>
<![endif]-->
</head>
<!-- NOTE : ng-cloak here is not optimal solution : better to use it only where it is needed (I just take a shortcut as this an example not a production sample) -->
<body ng-cloak>
<div>
<!-- navigation
=============================================================-->
<header id="pageHeader" >
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Easy form generator</a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a class="socialIcon" target="_blank" href="https://github.com/MacKentoch"><span class="text-center"><i class="fa fa-github"></i></span></a></li>
<li><a class="socialIcon" target="_blank" href="https://twitter.com/erwan_datin"><span class="text-center"><i class="fa fa-twitter"></i></span></a></li>
</ul>
</div>
</div>
</div>
</header>
<!-- section worflow edit
=============================================================-->
<section id="pageWfEdit" ng-controller="ngwfWfEditController as vm">
<div ng-init="">
<div class="container">
<section id="preview">
<div id="preview-content">
<div class="content-container">
<!-- taoster alert -->
<toaster-container toaster-options="{
'position-class': 'toast-top-full-width',
'extendedTimeout':500,
'timeOut':500,
}">
</toaster-container>
<tabset justified="true">
<tab select="tabJustSelected(2)" active="tab.editTab.active" heading="Edit /Create">
<div class="row">
<!-- STEP INDICATOR -->
<div class="row stepwizardTopmargin">
<div class="col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2">
<div class="stepwizard">
<div class="row stepwizard-row">
<div class="stepwizard-step col-md-3">
<button type="button" class="btn btn-circle" ng-class="{'btn-primary': configuration.stepIndicators[0], 'btn-default': !configuration.stepIndicators[0]}" >0</button>
<p>lines</p>
</div>
<div class="stepwizard-step col-md-3">
<button type="button" class="btn btn-circle" ng-class="{'btn-primary': configuration.stepIndicators[1], 'btn-default': !configuration.stepIndicators[1], 'disabled': (configuration.configStepCounter < 1)}" >1</button>
<p>layout</p>
</div>
<div class="stepwizard-step col-md-3">
<button type="button" class="btn btn-default btn-circle" ng-class="{'btn-primary': configuration.stepIndicators[2], 'btn-default': !configuration.stepIndicators[2], 'disabled': (configuration.configStepCounter < 2)}" >2</button>
<p>controls</p>
</div>
<div class="stepwizard-step col-md-3">
<button type="button" class="btn btn-default btn-circle" ng-class="{'btn-primary': configuration.stepIndicators[3], 'btn-default': !configuration.stepIndicators[3], 'disabled': (configuration.configStepCounter < 3)}" >3</button>
<p>save</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<ul class="pager">
<li ng-class="{'disabled':stepIndicators[0]}">
<button class="btn btn-primary customPagerButton" ng-click="previousConfigStep()" >
<i class="fa fa-arrow-left fa-2x pull-left"></i>
<span class="pull-right">Prev</span>
</button>
</li>
<li ng-class="{'disabled':stepIndicators[3]}">
<button class="btn btn-primary customPagerButton" ng-click="nextConfigStep()">
<span class="pull-left">Next</span>
<i class="fa fa-arrow-right fa-2x pull-right"></i>
</button>
</li>
</ul>
<div class="animate-switch-container" ng-switch on="configuration.listConfigStep[configuration.configStepCounter]">
<div class="animate-switch" ng-switch-when="init">
<div class="col-md-4" >
<div id="commandPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-keyboard-o"></i> Command</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<span class="addNewLine">Add a new line :</span>
<button class="btn btn-primary" ng-click="addNewline()"><i class="fa fa-plus fa-1x"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div id="visualPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-eye"></i> Visual</h3>
</div>
<div class="panel-body">
<!-- lines -->
<ul class="list-group">
<li class="list-group-item" ng-repeat="line in configuration.lines track by $index">
<!-- columns -->
<div ng-switch on="line.columns.length">
<div class="row linesList" ng-switch-when="1">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn btn-warning" ng-hide="$index==0" ng-click="upThisLine($index)"><i class="fa fa-arrow-up"></i></button>
<button class="btn btn-warning" ng-hide="$index==(configuration.lines.length-1)" ng-click="downThisLine($index)"><i class="fa fa-arrow-down"></i></button>
<button class="btn btn-danger pull-right" ng-click="removeThisLine($index)"><i class="fa fa-trash-o"></i></button>
</div>
<div class="col-md-12">
<div class="col-md-12 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
</div>
</div>
<div class="row linesList" ng-switch-when="2">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn btn-warning" ng-hide="$index==0" ng-click="upThisLine($index)"><i class="fa fa-arrow-up"></i></button>
<button class="btn btn-warning" ng-hide="$index==(configuration.lines.length-1)" ng-click="downThisLine($index)"><i class="fa fa-arrow-down"></i></button>
<button class="btn btn-danger pull-right" ng-click="removeThisLine($index)"><i class="fa fa-trash-o"></i></button>
</div>
<div class="col-md-12">
<div class="col-md-6 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
<div class="col-md-6 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}
</button>
</div>
</div>
</div>
<div class="row linesList" ng-switch-when="3">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn btn-warning" ng-hide="$index==0" ng-click="upThisLine($index)"><i class="fa fa-arrow-up"></i></button>
<button class="btn btn-warning" ng-hide="$index==(configuration.lines.length-1)" ng-click="downThisLine($index)"><i class="fa fa-arrow-down"></i></button>
<button class="btn btn-danger pull-right" ng-click="removeThisLine($index)"><i class="fa fa-trash-o"></i></button>
</div>
<div class="col-md-12">
<div class="col-md-4 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
<div class="col-md-4 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}
</button>
</div>
<div class="col-md-4 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[2].control.type !== 'none' ? line.columns[2].control.type + ' ' + line.columns[2].control.subtype || '' : 'column 3'}}
</button>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="animate-switch" ng-switch-when="first">
<div class="col-md-4">
<div id="commandPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-keyboard-o"></i> Command</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<h4 class="numberOfcolumsText text-center"><i>– Selected line –</i></h4>
<h4 class="numberOfcolumsText text-center">number of columns :</h4>
</div>
</div>
<div class="row">
<div class="col-xs-2 col-xs-offset-3 col-sm-2 col-sm-offset-3 col-md-2 col-md-offset-3">
<button class="btn btn-primary pull-right btnMinusColumns" ng-click="decreaseNumberOfColumns()"><i class="fa fa-minus fa-1x"></i></button>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 text-center">
<span class="numberOfColumnsLabel ">{{configuration.lines[configuration.activeLine -1].columns.length}}</span>
</div>
<div class="col-xs-2 col-sm-2 col-md-2">
<button class="btn btn-primary pull-left btnAddColumns" ng-click="increaseNumberOfColumns()"><i class="fa fa-plus fa-1x"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div id="visualPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-eye"></i> Visual</h3>
</h3>
</div>
<div class="panel-body">
<!-- lines / columns -->
<ul class="list-group">
<li class="list-group-item" ng-repeat="line in configuration.lines track by $index">
<!-- columns -->
<div ng-switch on="line.columns.length">
<div class="row linesList" ng-switch-when="1">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn" ng-class="{'btn-warning':($index + 1) !== configuration.activeLine, 'btn-success': ($index + 1) === configuration.activeLine}" ng-click="setActiveLineNumber($index + 1)">
<i class="fa" ng-class="{'fa-square-o': ($index + 1) !== configuration.activeLine, 'fa-check-square-o': ($index + 1) === configuration.activeLine}"></i>
</button>
</div>
<div class="col-md-12">
<div class="col-md-12 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
</div>
</div>
<div class="row linesList" ng-switch-when="2">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn" ng-class="{'btn-warning':($index + 1) !== configuration.activeLine, 'btn-success': ($index + 1) === configuration.activeLine}" ng-click="setActiveLineNumber($index + 1)">
<i class="fa" ng-class="{'fa-square-o': ($index + 1) !== configuration.activeLine, 'fa-check-square-o': ($index + 1) === configuration.activeLine}"></i>
</button>
</div>
<div class="col-md-12">
<div class="col-md-6 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
<div class="col-md-6 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}
</button>
</div>
</div>
</div>
<div class="row linesList" ng-switch-when="3">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn" ng-class="{'btn-warning':($index + 1) !== configuration.activeLine, 'btn-success': ($index + 1) === configuration.activeLine}" ng-click="setActiveLineNumber($index + 1)">
<i class="fa" ng-class="{'fa-square-o': ($index + 1) !== configuration.activeLine, 'fa-check-square-o': ($index + 1) === configuration.activeLine}"></i>
</button>
</div>
<div class="col-md-12">
<div class="col-md-4 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
<div class="col-md-4 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}
</button>
</div>
<div class="col-md-4 well">
<button class="btn btn-lg btn-block btn-default disabled">
{{line.columns[2].control.type !== 'none' ? line.columns[2].control.type + ' ' + line.columns[2].control.subtype || '' : 'column 3'}}
</button>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="animate-switch" ng-switch-when="second">
<div class="col-md-4">
<div id="commandPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-keyboard-o"></i> Command</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<h4 class="numberOfcolumsText text-center">– Apply controls to columns –</h4>
</div>
</div>
<div class="row">
<div class="col-lg-12" >
<hr/>
<!-- <p class="numberOfcolumsText text-center"><i class="fa fa-question-circle"></i> <b>How to :</b></p> -->
<blockquote>
<p class="numberOfcolumsText"><i class="fa fa-minus"></i> Click / Tap on column to open control selection.</p>
<p class="numberOfcolumsText"><i class="fa fa-minus"></i> Select desired control and valid to apply it to column.</p>
</blockquote>
</div>
<!-- <div class="col-xs-2 col-xs-offset-3 col-sm-2 col-sm-offset-3 col-md-2 col-md-offset-3">
<button class="btn btn-primary pull-right btnMinusColumns" ng-click="decreaseNumberOfColumns()"><i class="fa fa-minus fa-1x"></i></button>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 text-center">
<span class="numberOfColumnsLabel ">{{configuration.lines[configuration.activeLine -1].columns.length}}</span>
</div>
<div class="col-xs-2 col-sm-2 col-md-2">
<button class="btn btn-primary pull-left btnAddColumns" ng-click="increaseNumberOfColumns()"><i class="fa fa-plus fa-1x"></i></button>
</div> -->
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div id="visualPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-eye"></i> Visual</h3>
</h3>
</div>
<div class="panel-body">
<!-- lines / columns -->
<ul class="list-group">
<li class="list-group-item" ng-repeat="line in configuration.lines track by $index">
<!-- columns -->
<div ng-switch on="line.columns.length">
<div class="row linesList" ng-switch-when="1">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn" ng-class="{'btn-warning':($index + 1) !== configuration.activeLine, 'btn-success': ($index + 1) === configuration.activeLine}" ng-click="setActiveLineNumber($index + 1)">
<i class="fa" ng-class="{'fa-square-o': ($index + 1) !== configuration.activeLine, 'fa-check-square-o': ($index + 1) === configuration.activeLine}"></i>
</button>
</div>
<div class="col-md-12">
<div class="col-md-12 well">
<button class="btn btn-lg btn-block" ng-class="{'btn-primary': !line.columns[0].control.edited, 'btn-success': line.columns[0].control.edited}" ng-click="showModalAddCtrlToColumn('', $index, 0)">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
</div>
</div>
<div class="row linesList" ng-switch-when="2">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn" ng-class="{'btn-warning':($index + 1) !== configuration.activeLine, 'btn-success': ($index + 1) === configuration.activeLine}" ng-click="setActiveLineNumber($index + 1)">
<i class="fa" ng-class="{'fa-square-o': ($index + 1) !== configuration.activeLine, 'fa-check-square-o': ($index + 1) === configuration.activeLine}"></i>
</button>
</div>
<div class="col-md-12">
<div class="col-md-6 well">
<button class="btn btn-lg btn-block" ng-class="{'btn-primary': !line.columns[0].control.edited, 'btn-success': line.columns[0].control.edited}" ng-click="showModalAddCtrlToColumn('', $index, 0)">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
<div class="col-md-6 well">
<button class="btn btn-lg btn-block" ng-class="{'btn-primary': !line.columns[1].control.edited, 'btn-success': line.columns[1].control.edited}" ng-click="showModalAddCtrlToColumn('', $index, 1)">
{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}
</button>
</div>
</div>
</div>
<div class="row linesList" ng-switch-when="3">
<div class="col-md-12 lineCommandButtons" ng-show="configuration.lines.length > 1">
<button class="btn" ng-class="{'btn-warning':($index + 1) !== configuration.activeLine, 'btn-success': ($index + 1) === configuration.activeLine}" ng-click="setActiveLineNumber($index + 1)">
<i class="fa" ng-class="{'fa-square-o': ($index + 1) !== configuration.activeLine, 'fa-check-square-o': ($index + 1) === configuration.activeLine}"></i>
</button>
</div>
<div class="col-md-12">
<div class="col-md-4 well">
<button class="btn btn-lg btn-block" ng-class="{'btn-primary': !line.columns[0].control.edited, 'btn-success': line.columns[0].control.edited}" ng-click="showModalAddCtrlToColumn('', $index, 0)">
{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}
</button>
</div>
<div class="col-md-4 well">
<button class="btn btn-lg btn-block" ng-class="{'btn-primary': !line.columns[1].control.edited, 'btn-success': line.columns[1].control.edited}" ng-click="showModalAddCtrlToColumn('', $index, 1)">
{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}
</button>
</div>
<div class="col-md-4 well">
<button class="btn btn-lg btn-block" ng-class="{'btn-primary': !line.columns[2].control.edited, 'btn-success': line.columns[2].control.edited}" ng-click="showModalAddCtrlToColumn('', $index, 2)">
{{line.columns[2].control.type !== 'none' ? line.columns[2].control.type + ' ' + line.columns[2].control.subtype || '' : 'column 3'}}
</button>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="animate-switch" ng-switch-when="third">
<div class="col-md-4">
<div id="commandPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-keyboard-o"></i> Command</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label for="inputSubmitButtontext" class=" greyText control-label">Customize Submit button Text :</label>
<div class="">
<input type="text" class="form-control" id="inputSubmitButtontext" placeholder="Submit button text" ng-model="configuration.submitButtonText">
</div>
</div>
</div>
</div>
<hr/>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label for="inputCancelButtontext" class=" greyText control-label">Customize Cancel button Text :</label>
<div class="">
<input type="text" class="form-control" id="inputCancelButtontext" placeholder="Cancel button text" ng-model="configuration.cancelButtonText">
</div>
</div>
</div>
</div>
<hr/>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label for="inputNameFormtext" class=" greyText control-label">Name to this form :</label>
<div class="">
<input type="text" class="form-control" id="inputNameFormtext" placeholder="Enter formName" ng-model="configuration.formName">
</div>
</div>
</div>
</div>
<button class="btn btn-primary btn-block btn-lg" ng-click="saveThisForm()">save this form</button>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div id="visualPanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-thumbs-o-up"></i> Final Step : form preview</h3>
</div>
<div class="panel-body">
<form ng-submit="vm.onSubmit()">
<formly-form id="saveFormlyFom" model="vm.model" fields="vm.wfFormFields">
<span class="pull-right">
<button class="btn btn-primary" type="submit">{{configuration.submitButtonText}}</button>
<button class="btn btn-primary" type="cancel">{{configuration.cancelButtonText}}</button>
</span>
</formly-form>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</tab>
<tab select="tabJustSelected(1)" active="tab.previewTab.active" heading="Preview">
<div class="panel panel-default">
<div class="panel-body">
<!-- formly here -->
<form ng-submit="vm.onSubmit()">
<formly-form id="previewFormlyForm" model="vm.model" fields="vm.wfFormFields">
<span class="pull-right">
<button class="btn btn-primary" type="submit">{{configuration.submitButtonText}}</button>
<button class="btn btn-primary" type="cancel">{{configuration.cancelButtonText}}</button>
</span>
</formly-form>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
<p>DATA MODEL</p>
<pre>
{{vm.model | json}}
</pre>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
<p>FIELDS MODEL (ready to save to database one)</p>
<pre>
{{vm.wfFormFieldsOnlyNeededProperties | json}}
</pre>
</div>
</div>
</tab>
</tabset>
</div>
</div>
</section>
<hr/>
<section>
<h6 class="text-right">Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)</h6>
</section>
</div>
</div>
</section>
</div>
<!-- footer
=============================================================-->
<footer id="pageFooter">
<!-- jquery framework : top 1 priority -->
<script type="text/javascript" src="./public/lib/js/jquery.min.js"></script>
<!-- bootstrap framework scripts -->
<script type="text/javascript" src="./public/lib/js/bootstrap.min.js"></script>
<!-- angular ui bootstrap -->
<script type="text/javascript" src="./public/lib/js/ui-bootstrap-tpls.min.js"></script>
<!-- angular app all concatenated here (app, controllers directives, containers ...) -->
<script type="text/javascript" src="./public/js/eda.stepway.js"></script>
<!-- textAngular Includes -->
<script src='./public/lib/js/textAngular-rangy.min.js'></script>
<script src='./public/lib/js/textAngular-sanitize.min.js'></script>
<script src='./public/lib/js/textAngular.min.js'></script>
<!-- lodash -->
<script src='./public/lib/js/lodash.min.js'></script>
<!-- angular animate -->
<script type="text/javascript" src="./public/lib/js/angular-animate.min.js"></script>
<!-- angular toaster -->
<script type="text/javascript" src="./public/lib/js/toaster.min.js"></script>
<!-- nya select bootstrap -->
<script type="text/javascript" src="./public/lib/js/nya-bs-select.min.js"></script>
<!-- api-check = formly needed : IMPORTANT : always before formly -->
<script type="text/javascript" src="./public/lib/js/api-check.min.js"></script>
<!-- angular formly -->
<script type="text/javascript" src="./public/lib/js/formly.min.js"></script>
<!-- angular formly template bootstrap -->
<script type="text/javascript" src="./public/lib/js/angular-formly-templates-bootstrap.min.js"></script>
</footer>
</body>
</html>