コード例 #1
0
        </tr>
        </thead>
        <tbody>
        {{#answers}}
            <tr>
                <td class="table-qcm__valid">

                    {{^isValid}}
                        <?php 
echo $radio = BootForm::radio('', 'valids_answers[{{questionNumber}}]', '{{index}}')->required()->uncheck();
?>
                    {{/isValid}}

                    {{#isValid}}
                        <?php 
echo $radio = BootForm::radio('', 'valids_answers[{{questionNumber}}]', '{{index}}')->required()->check();
?>
                    {{/isValid}}

                </td>
                <td class="table-qcm__answer">
                    <?php 
echo BootForm::text('', 'answers[{{questionNumber}}][]')->hideLabel()->required()->value('{{answer}}');
?>
                </td>
            </tr>
            {{/answers}}
        </tbody>
    </table>
</fieldset>