/
answer.twig
41 lines (39 loc) · 1.23 KB
/
answer.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{#
/**
* array array, no dropdown, Html
*
* @var $sColumns : the columns, generated with the view columns/col.php
* @var $sHeaders : the headers, generated with the view rows/cell/thead.php
* @var $sRows : the rows, generated with the view rows/answer_row.php
*
* @var $extraclass
*
*/
#}
<!-- Array -->
<!-- answer -->
<table class="{{ coreClass }} table table-bordered table-hover table-array-radio" role="presentation" aria-labelledby="ls-question-text-{{ basename }}">
<colgroup class="col-responses">
<col class="col-answers" style='width: {{ answerwidth }}%;' />
{# columns/col.php #}
{% for aColumn in aColumns %}
<col class="{{ aColumn.class }}" style='width: {{ aColumn.cellwidth }}%'/>
{% endfor %}
</colgroup>
<tbody>
<tr class="ls-heading">
{{sHeaders}}
</tr>
{% if anscount==0 %}
<tr>
<td class="answertext">
{{ gT('Error: This question has no answers.') }}
</td>
</tr>
{% endif %}
{% for aRow in aRows %}
{% include aRow.template with aRow.content only %}
{% endfor %}
</tbody>
</table>
<!-- end of answer -->