vcp-elearning/tkupek_elearning/elearning/templates/index.html

48 lines
1.3 KiB
HTML
Raw Normal View History

2016-01-20 23:55:56 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
{% load staticfiles %}
<link rel="stylesheet" href="{% static 'css/style.css' %}">
<link href="{% static 'images/favicon.ico' %}" rel="shortcut icon">
<script type="text/javascript" src="{% static 'js/elearning.js' %}"></script>
<title>{{ settings.title }}</title>
2016-01-20 23:55:56 +01:00
</head>
<body>
<div class="container">
2016-01-31 18:19:45 +01:00
<h1>{{ settings.title }}</h1>
<p>{{ settings.message }}</p>
<hr/>
<div class="margin50" />
2016-01-31 16:17:37 +01:00
{% for question, options in questions_options.items %}
<h2>{{ question.id }}: {{ question.title }}</h2>
<p>{{ question.text }}</p>
<form action="#">
{% for option in options %}
<label>
<input type="checkbox" name="option" value="{{ option.id }}">
{{ option.text }}
</label>
{% endfor %}
<button class="margin10" type="button" id="showSolution" onmouseup="toggle_solution({{ question.id }})">{{ settings.button_solution }}</button>
</form>
<p id="explanation_{{ question.id }}" class="hide">{{ question.explanation }}</p>
<div class="margin25" />
2016-01-31 16:17:37 +01:00
{% endfor %}
<div class="margin50" />
2016-01-31 18:19:45 +01:00
<hr/>
{{ settings.footer }}
2016-01-20 23:55:56 +01:00
</div>
</body>
</html>