test_form.php 397 B

12345678910111213141516
  1. <div class="container mt-3 py-4">
  2. <?php
  3. if($test->status == Test::STATUS_ASSIGNED) {
  4. $template->renderBeforeTestForm();
  5. }
  6. else if($test->status == Test::STATUS_STARTED) {
  7. $template->renderDuringTestForm();
  8. }
  9. else {
  10. ?>
  11. <h2>Test Completed</h2>
  12. <div class="alert alert-success">This test is now completed. <a href="/account">Click here</a> to return to the Account page.</div>
  13. <?php
  14. }
  15. ?>
  16. </div>