/
answer_row_other.twig
48 lines (45 loc) · 1.37 KB
/
answer_row_other.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
46
47
48
{#
/**
* List radio Html : item 'other' row
*
* @var $name
* @var $answer_other
* @var $sDisplayStyle
* @var $sDisable
* @var $myfname
* @var $othertext
* @var $checkedState
* @var $kpclass
* @var $sValue
* @var $oth_checkconditionFunction
* @var $checkconditionFunction
*/
#}
<!-- answer_row_other -->
<li id='javatbd{{ myfname }}' class='form-group answer-item radio-text-item form-inline' {{ sDisplayStyle }} >
<!-- Checkbox + label -->
<div class="form-group othertext-label-checkox-container radio-item">
<input
type="radio"
value="-oth-"
name="{{ name }}"
id="SOTH{{ name }}"
{{ checkedState }}
onclick="{{ checkconditionFunction }}(this.value, this.name, this.type)"
/>
<label for="SOTH{{ name }}" class="control-label label-radio" id="label-id-{{ name }}">{{ othertext }}</label>
</div>
<!-- comment -->
<div class="form-group text-item other-text-item">
<input
type="text"
class="form-control {{ kpclass }} input-sm"
id="answer{{ name }}othertext"
name="{{ name }}other"
title="{{ gT('Other') }}" {{ answer_other }}
onkeyup="if($.trim($(this).val())!=''){ $('#SOTH{{ name }}').click(); }; {{ oth_checkconditionFunction }}",
aria-labelledby="label-id-{{ name }}"
/>
</div>
</li>
<!-- end of answer_row_other -->