-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (50 loc) · 3.14 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Appinion</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body ng-app="steps">
<div ng-controller="stepController">
<steps settings="stepFormSettings">
<step-item title="First step title">First step text!!!
<div class="block" ng-class="{ 'has-error' : stepFormSettings.mainForm.stepForm.body.$invalid && !stepFormSettings.mainForm.stepForm.body.$pristine}">
<label class="control-label">Question text</label>
<!-- <input type="text" name="body" placeholder="Question" class="form-control" ng-model="editQuestion.body" required="" ng-maxlength="140">
<p ng-show="stepFormSettings.mainForm.stepForm.body.$error.required && !stepFormSettings.mainForm.stepForm.body.$pristine" class="help-block">Title is required.</p>
<p ng-show="stepFormSettings.mainForm.stepForm.body.$error.maxlength && !stepFormSettings.mainForm.stepForm.body.$pristine" class="help-block">Title cannot be longer than 140 characters.</p> -->
<button steps-next>Next</button>
</div>
</step-item>
<step-item title="Second step title" on-init-step = "secondStepInit()">Second step text!!!
<div class="block" ng-class="{ 'has-error' : stepFormSettings.mainForm.stepForm.body.$invalid && !stepFormSettings.mainForm.stepForm.body.$pristine}">
<label class="control-label">Question text</label>
<!-- <input type="text" name="body" placeholder="Question" class="form-control" ng-model="editQuestion.body" required="" ng-maxlength="140">
<p ng-show="stepFormSettings.mainForm.stepForm.body.$error.required && !stepFormSettings.mainForm.stepForm.body.$pristine" class="help-block">Title is required.</p>
<p ng-show="stepFormSettings.mainForm.stepForm.body.$error.maxlength && !stepFormSettings.mainForm.stepForm.body.$pristine" class="help-block">Title cannot be longer than 140 characters.</p> -->
<button steps-previous>Prev</button>
<button steps-next>Next</button>
</div>
</step-item>
<step-item title="Third step title">Third step text!!!</step-item>
</steps>
</div>
<script src="angular.js"></script>
<script src="src/angularModule.js"></script>
<script src="src/steps.js"></script>
<script src="src/steps-item.js"></script>
<script src="src/steps-buttons.js"></script>
<script type="text/javascript">
angular.module('steps', ['vig-angular-steps']);
angular.module('steps').controller('stepController', ['$scope',
function($scope){
$scope.secondStepInit = function(){
console.log('second step init function');
};
}
]);
</script>
</body>
</html>