forked from smsohan/angular_wizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (77 loc) · 2.59 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
<!DOCTYPE html>
<html ng-app="myApp" >
<head>
<title>AngularJS Wizard Demo</title>
<style>
.wizard{
text-align: center;
line-height: 1.7em;
}
.wizard .buttons{
margin: 10px;
}
.wizard .buttons a:hover{
font-weight: bold;
padding: 10px;
}
</style>
</head>
<body>
<a href="https://github.com/smsohan/angular_wizard"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
<div ng-controller="WizardController">
<script id="wizard.html" type="text/ng-template">
<div class="wizard">
<h1> AngularJS Wizard Demo </h1>
<div ng-transclude></div>
<div class="buttons">
<a ng-click="showPreviousStep()" ng-show="hasPrevious()">Previous</a>
<a ng-click="showNextStep()" ng-show="hasNext()">Next</a>
</div>
</div>
</script>
<wizard on-before-step-change="log(event)" on-step-changing="log(event)" on-after-step-change="log(event)">
<step title="Step 1: Name">
<strong>Name:</strong> <input type="text" ng-model="user.name"/>
</step>
<step title="Step 2: Email">
<strong>Name:</strong> {{user.name}}
<br>
<strong>Email:</strong> <input type="text" ng-model="user.email"/>
</step>
<step title="Step 3: Address">
<strong>Name:</strong> {{user.name}}
<br>
<strong>Email:</strong> {{user.email}}
<br>
Address: <input type="text" ng-model="user.address"/>
</step>
<step title="Step 4: Color">
<strong>Name:</strong> {{user.name}}
<br>
<strong>Email:</strong> {{user.email}}
<br>
<strong>Address:</strong> {{user.address}}
<br>
<strong>Favorite Color:</strong> <select ng-model="user.color">
<option>Red</option>
<option>Green</option>
<option>Orange</option>
<option>Other</option>
</select>
</step>
<step title="Summary">
<strong>Name:</strong> {{user.name}}
<br>
<strong>Email:</strong> {{user.email}}
<br>
<strong>Address:</strong> {{user.address}}
<br>
<strong>Favorite Color:</strong> {{user.color}}
</step>
</wizard>
</div>
<a href="https://github.com/smsohan/angular_wizard">SourceCode on Github</a>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script>
<script type="text/javascript" src="main.js"></script>
</body>
</html>