如何将 myForm 中名为“isMarried”的字段绑定到视图中的复选框控件?我想要这种双向绑定。我正在使用来自https://github.com/nostalgiaz/bootstrap-switch的引导开关
@(myForm: Form[_])
@helper.form(action = controllers.index.submit, 'id -> "myForm") {
<fieldset>
<legend>General information</legend>
<div class="twipsies well">
<div class="control-group">
<label class="control-label" for="isMarried">Married</label>
<div class="controls">
<div class="switch switch-small" tabindex="0" data-on-label="Yes" data-off-label="No" data-off="warning">
<input id="isMarried" name="isMarried" type="checkbox"/>
</div>
</div>
</div>
</div>
</fieldset>
}