-
Notifications
You must be signed in to change notification settings - Fork 0
/
dep.html
40 lines (22 loc) · 1.15 KB
/
dep.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
<ion-view title="Depression Check Tool">
<ion-content ng-controller="checkdepressionCtrl">
<div class="list ">
<ul >
<li ng-repeat="question in questions">
<div class="item item-text-wrap">
<strong class="question">{{ question.questionText }}</strong>
<ul class="unstyled" id="quest_{{$parent.$index}}"">
<li class="depressionclass" ng-repeat="answer in question.answers">
<label class="isCorrect_{{answer.selected}}" for="quest_{{$parent.$index}}_answer_{{$index}}">
<input type="radio" id="quest_{{$parent.$index}}_answer_{{$index}}"
ng-model="answers[$parent.$index]" value="{{ answer.answerText }}" name="quest_{{$parent.$index}}_answers" />{{ answer.answerText }}</label>
</li>
</ul>
</li>
</ul>
</div>
<button class="button button-block button-positive" type="submit" ng-click="showResult()">Submit</button>
<button class="button button-block button-royal" type="submit" ng-click="addchartMessage()">Process Data</button>
</div>
</ion-content>
</ion-view>