-
Notifications
You must be signed in to change notification settings - Fork 1
/
wizard.html
46 lines (40 loc) · 1.38 KB
/
wizard.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
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="wizard-container" >
<div id="wizard-step-container">
<ul class="nav nav-pills nav-justified">
<li ng-repeat="step in vm.steps"
ng-class="{'active':step.step == vm.currentStep}"><a
ng-click="vm.gotoStep(step.step)" href="">{{step.step}}.
{{step.name}}</a></li>
</ul>
</div>
<div id="wizard-content-container">
<ng-include src="vm.getStepTemplate()"></ng-include>
</div>
<div id="wizard-navigation-container">
<div class="pull-right">
<span class="btn-group">
<button ng-disabled="vm.currentStep <= 1"
class="btn btn-default" name="previous" type="button"
ng-click="vm.gotoStep(vm.currentStep - 1)">
<i class="fa fa-arrow-left"></i> Previous step
</button>
<button ng-disabled="vm.currentStep >= vm.steps.length"
class="btn btn-primary" name="next" type="button"
ng-click="vm.gotoStep(vm.currentStep + 1)">
Next step <i class="fa fa-arrow-right"></i>
</button>
</span>
<button ng-disabled="vm.currentStep != vm.steps.length"
class="btn btn-success" name="next" type="button"
ng-click="vm.save()">
<i class="fa fa-floppy-o"></i> Save
</button>
</div>
</div>
</div>
</div>
</div>
</div>