-
Notifications
You must be signed in to change notification settings - Fork 5
/
navbar.html
51 lines (50 loc) · 2.85 KB
/
navbar.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
<div class="pos-f-t">
<div class="collapse" id="navbarToggleExternalContent">
<div class="bg-dark p-4">
<h4 class="text-white">Exame code</h4>
<form>
<div class="form-row">
<div class="form-group col-md-6">
<input ng-model="examUrl" type="examUrl" class="form-control" id="examUrl" placeholder="Insert here the exam code">
</div>
<div class="form-group col-md-6">
<button class="btn btn-outline-secondary" type="button" ng-click="getExamQuestions(examUrl)">
<span >Load</span>
</button>
</div>
</div>
</form>
<span class="text-muted">You can find this code on the link of the sheet containing the exam data. Please unsure that the sheet is public shared via url. Ex:1_ESXNZg2wqMyt5G1nFAlGQz2yPfwwogDK3-8cAwiMQA</span>
</div>
</div>
<nav class="navbar navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<form class="form-inline">
<button class="btn btn-success" type="button" style="margin-right: 10px" ng-if="currentQuestion.isEvaluated && currentQuestion.isCorrect">Correct</button>
<button class="btn btn-danger" type="button" style="margin-right: 10px" ng-if="currentQuestion.isEvaluated && !currentQuestion.isCorrect">Incorrect</button>
<button class="btn btn-primary" type="button" style="margin-right: 10px"
ng-if="currentQuestion.isEvaluated && currentQuestion.explanation" ng-click="toogleInfo()">
<span >Explanation</span>
</button>
<button class="btn btn-outline-light" type="button" style="margin-right: 10px" ng-click="evaluateQuestion(currentQuestion)">
<span >Evaluate</span>
</button>
<button class="btn btn-outline-secondary" type="button" style="margin-right: 10px"
ng-disabled="examInfo.currentQuestion == '1'"
ng-click="previowsQuestion()"
>
<span >Previous</span>
</button>
<button class="btn btn-outline-secondary" type="button"
style="margin-right: 10px"
ng-disabled="examInfo.currentQuestion == ''+examInfo.totalQuestions"
ng-click="nextQuestion()"
>
<span >Next</span>
</button>
<button type="button" class="btn btn-success" ng-click="finish()">Finish</button>
</form>
</nav>
</div>