2016-01-20 23:55:56 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2016-01-31 21:18:13 +01:00
|
|
|
{% load staticfiles %}
|
|
|
|
<link rel="stylesheet" href="{% static 'css/style.css' %}">
|
|
|
|
<link href="{% static 'images/favicon.ico' %}" rel="shortcut icon">
|
2016-02-21 22:41:24 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
2016-01-31 21:18:13 +01:00
|
|
|
<title>{{ settings.title }}</title>
|
2016-02-21 22:41:24 +01:00
|
|
|
|
2016-03-05 15:02:08 +01:00
|
|
|
<!-- jQuery -->
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
|
|
|
|
2016-02-21 22:41:24 +01:00
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
|
|
|
|
|
|
|
<!-- Optional theme -->
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
|
2016-03-05 15:02:08 +01:00
|
|
|
|
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
|
2016-01-20 23:55:56 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2016-03-05 15:02:08 +01:00
|
|
|
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" id="completed-modal">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title" id="myModalLabel">{{ settings.popup_completed_title }}</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
{{ settings.popup_completed_message|safe }}
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="popup-leave-message" class="hide">{{ settings.popup_leave_message|safe }}</div>
|
|
|
|
|
2016-01-20 23:55:56 +01:00
|
|
|
<div class="container">
|
2016-02-21 22:41:24 +01:00
|
|
|
|
2016-03-05 15:02:08 +01:00
|
|
|
{% if settings.logo %}
|
|
|
|
<img src="{{ settings.logo }}" class="mainLogo">
|
|
|
|
{% endif %}
|
2016-01-31 18:19:45 +01:00
|
|
|
<h1>{{ settings.title }}</h1>
|
2016-03-05 13:31:42 +01:00
|
|
|
<p>{{ settings.message_welcome_user|safe }}</p>
|
2016-02-21 22:41:24 +01:00
|
|
|
<div class="progress">
|
|
|
|
<div id="progressbar" class="progress-bar progress-bar-striped" role="progressbar" style="width: {{ progress }}%">
|
2016-03-05 15:02:08 +01:00
|
|
|
{{ progress }}%
|
2016-02-21 22:41:24 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-01-31 18:19:45 +01:00
|
|
|
<hr/>
|
2016-02-09 21:35:46 +01:00
|
|
|
<div class="margin50" ></div>
|
2016-01-31 16:17:37 +01:00
|
|
|
|
2016-01-31 21:18:13 +01:00
|
|
|
{% for question, options in questions_options.items %}
|
2016-02-21 22:41:24 +01:00
|
|
|
<div class="container question" name="question" id="question_{{ question.id }}">
|
2016-01-31 21:18:13 +01:00
|
|
|
<h2>{{ question.id }}: {{ question.title }}</h2>
|
2016-03-05 13:14:33 +01:00
|
|
|
<p>{{ question.text|safe }}</p>
|
2016-01-31 21:18:13 +01:00
|
|
|
|
2016-02-21 22:41:24 +01:00
|
|
|
<ul class="list-group ">
|
|
|
|
{% for option in options %}
|
|
|
|
<li name="checkbox_div_{{ question.id }}" class="list-group-item">
|
2016-01-31 21:18:13 +01:00
|
|
|
<label>
|
2016-02-09 19:51:05 +01:00
|
|
|
<input name="checkbox_{{ question.id }}" type="checkbox" value="{{ option.id }}">
|
2016-01-31 21:18:13 +01:00
|
|
|
{{ option.text }}
|
|
|
|
</label>
|
2016-02-21 22:41:24 +01:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
2016-03-03 22:00:14 +01:00
|
|
|
<p id="enable-{{ question.id }}" data-value="{{ question.enable }}" data-questionId= "{{ question.id }}" class="message_already_answered hide">
|
|
|
|
{{ settings.message_already_answered }}
|
|
|
|
</p>
|
|
|
|
|
2016-02-21 22:41:24 +01:00
|
|
|
<div class="container">
|
|
|
|
<button class="btn btn-default show" type="button" id="showSolution_{{ question.id }}" onmouseup="get_answer({{ question.id }})">{{ settings.text_solution }}</button>
|
|
|
|
<button class="btn btn-default hide" type="button" id="next_{{ question.id }}" onmouseup="scrollToNextQuestion({{ question.id }})">{{ settings.text_next }}</button>
|
|
|
|
</div>
|
2016-01-31 21:18:13 +01:00
|
|
|
|
2016-02-21 22:41:24 +01:00
|
|
|
<div class="margin10 well well-sm hide" id="explanation_{{ question.id }}">
|
|
|
|
<h3>{{ settings.text_answer }}</h3>
|
2016-03-05 13:14:33 +01:00
|
|
|
<p>{{ question.explanation|safe }}</p>
|
2016-02-21 22:41:24 +01:00
|
|
|
</div>
|
|
|
|
<div class="margin75"></div>
|
|
|
|
</div>
|
2016-01-31 16:17:37 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
2016-02-09 21:35:46 +01:00
|
|
|
<div class="margin50" ></div>
|
2016-01-31 18:19:45 +01:00
|
|
|
<hr/>
|
|
|
|
{{ settings.footer }}
|
|
|
|
|
2016-01-20 23:55:56 +01:00
|
|
|
</div>
|
|
|
|
|
2016-02-14 15:02:26 +01:00
|
|
|
<script type="text/javascript" src="{% static 'js/elearning.js' %}"></script>
|
2016-01-20 23:55:56 +01:00
|
|
|
</body>
|
|
|
|
</html>
|