{#
/**
 * Yes / No Question, buttons item Html
 *
 * @var $name                           $ia[1]
 * @var $yChecked
 * @var $nChecked
 * @var $naChecked
 * @var $noAnswer
 * @var $value                          $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$name]
 */
#}
<ul class="{{ coreClass }} list-unstyled btn-group btn-group-justified" data-toggle="buttons" role="radiogroup" aria-labelledby="ls-question-text-{{ basename }}">
    <!-- Yes -->
    <li id="javatbd{{ name }}Y" class="button-item form-group btn btn-primary {% if yChecked %}active{% endif %}">
        <input
            type="radio"
            name="{{ name }}"
            id="answer{{ name }}Y"
            value="Y"
            {{ yChecked }}
        />
        <label for="answer{{ name }}Y">
            <span class="fa fa-check ls-icon" aria-hidden="true"></span> {{ gT('Yes') }}
        </label>
    </li>
    <!-- No -->
    <li id="javatbd{{ name }}N" class="button-item form-group btn btn-primary {% if nChecked %}active{% endif %}">
        <input
            type="radio"
            name="{{ name }}"
            id="answer{{ name }}N"
            value="N"
            {{ nChecked }}
        />
        <label for="answer{{ name }}N">
            <span class="fa fa-ban ls-icon" aria-hidden="true"></span> {{ gT('No') }}
        </label>
    </li>

    <!-- No answer -->
    {% if noAnswer %}
        <li id="javatbd{{ name }}" class="button-item form-group btn btn-primary {% if naChecked %}active{% endif %}">
            <input
                type="radio"
                name="{{ name }}"
                id="answer{{ name }}"
                value=""
                {{ naChecked }}
            />
            <label for="answer{{ name }}">
                <span class="fa fa-circle-thin ls-icon" aria-hidden="true"></span> {{ gT('No answer') }}
            </label>
        </li>
    {% endif %}
</ul>
{# Value for expression manager javascript (use id) ; no need to submit #}
{{ C.Html.hiddenField("java"~name,value,({
    'id' : "java"~name,
    'disabled' : true,
}))
}}
