/
answer.twig
43 lines (39 loc) · 1.13 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
42
43
{#
/**
* Multiple Choice Html Html
*
* @var $name
* @var $value
*/
#}
<!-- List Radio -->
<!-- answer -->
{{ sTimer }}
<div class="container-fluid">
<div class="row {{coreClass}} form-inline " data-toggle="buttons" role="radiogroup" aria-labelledby="ls-question-text-{{name }}">
{# rows/answer_row.php #}
{{ sRows }}
{# Value for expression manager javascript (use id) ; no need to submit #}
{{ C.Html.hiddenField("java"~name,value,({
'id' : "java"~name,
'disabled' : true,
}))
}}
</div>
{# Must add it only of other is set ! #}
<div class="row ls-js-hidden form-inline" id="{{ name }}-div">
<label for="answer{{ name }}othertext" class="control-label" id="label-id-{{ name }}">{{ othertext }}</label>
<!-- comment -->
{{ gT('Other:') }}
<input
type="text"
class="form-control {{ kpclass }} input-sm"
id="answer{{ name }}othertext"
name="{{ name }}other"
title="{{ gT('Other') }}"
onkeyup="checkconditions(this.value, this.name, this.type);"
>
</label>
</div>
</div>
<!-- end of answer -->