Prepare monitoring using Statements component (early draft stage)
[qomet.git] / views / assessment.pug
index b4ba8c8..94b87ae 100644 (file)
@@ -13,15 +13,10 @@ block content
        .container#assessment
                .row
                        #warning.modal
-                               .modal-content
-                                       p Your answer to the current question was sent to the server.
-                                       p To avoid future unpleasant surprises, please don't
-                                       ul
-                                               li resize the window, or
-                                               li lose window focus.
+                               .modal-content {{ warnMsg }}
                                .modal-footer
                                        .center-align
-                                               a.modal-action.modal-close.waves-effect.waves-light.btn-flat(href="#!") Got it!
+                                               a.modal-action.modal-close.waves-effect.waves-light.btn-flat(href="#!") Ok
                .row
                        .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3
                                h4= assessment.name
@@ -52,7 +47,8 @@ block content
                                                .card
                                                        .timer.center(v-if="stage==2") {{ countdown }}
                                        .card
-                                               statements(:assessment="assessment" :student="student" :stage="stage" :inputs="inputs" @gameover="endAssessment")
+                                               button.waves-effect.waves-light.btn(style="display:block;margin:0 auto" @click="sendAnswer") Send
+                                               statements(:questions="assessment.questions" :showAnswers="showAnswers" :index="index" :inputs="inputs" @gameover="endAssessment")
                                #stage3(v-show="stage==3")
                                        .card
                                                .finish Exam completed ☺ ...don't close the window!
@@ -63,4 +59,6 @@ block content
 block append javascripts
        script.
                let assessment = !{JSON.stringify(assessment)};
+               const monitoring = false;
+       script(src="/javascripts/components/statements.js")
        script(src="/javascripts/assessment.js")