2
Copyright 2011-2013, Marten de Vries
4
This file is part of OpenTeacher.
6
OpenTeacher is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
11
OpenTeacher is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with OpenTeacher. If not, see <http://www.gnu.org/licenses/>.
22
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
23
<title>{%= o.list.title || "" %}</title>
24
<style type='text/css'>
26
font-family:Verdana, Helvetica, Arial, sans-serif;
27
margin:{%= o.margin %};
35
border-collapse:collapse;
41
border-bottom:1px solid #000;
50
.question, #question-header {
54
.answer, #answer-header {
59
{% if (o.coloredRows) { %}
61
background-color:#ddd;
71
<h1>{%= o.list.title || "" %}</h1>
75
<th id='number-header'></th>
76
<th id='question-header'>{%= o.list.questionLanguage || "" %}</th>
77
<th id='answer-header'>{%= o.list.answerLanguage || "" %}</th>
81
{% for (var i = 0; i < (o.list.items || []).length; i += 1) { %}
87
<td class='number'>{%= i + 1 %}</td>
88
<td class='question'>{%= o.compose(o.list.items[i].questions || []) %}</td>
89
<td class='answer'>{%= o.compose(o.list.items[i].answers || []) %}</td>