/
answer.twig
45 lines (39 loc) · 1.15 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
44
45
{#
/**
* Multiple Choice Html Html
*
* @var $name
* @var $value
*/
#}
<!-- List Radio -->
<!-- answer -->
{{ sTimer }}
<div class="{{coreClass}} row " role="toolbar" aria-labelledby="ls-question-text-{{name}}">
<div class="list-unstyled form-inline btn-toolbar col-sm-12 " data-toggle="buttons" role="toolbar" 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>
</div>
<div class="row {{ extraclass }} col-sm-4 hide" id="{{ name }}-div">
<label for="SOTH{{ name }}" class="control-label" id="label-id-{{ name }}">{{ othertext }}</label>
<!-- comment -->
{{ gT('Other:') }}
<input
type="text"
class="form-control {{ kpclass }} input-sm col-sm-4"
id="answer{{ name }}othertext"
name="{{ name }}other"
title="{{ gT('Other') }}"
onkeyup="checkconditions(this.value, this.name, this.type);"
aria-labelledby="label-id-{{ name }}"
>
</label>
</div>
<!-- end of answer -->