Overriding Play 2.1 Checkbox Form Helper for Twitter Bootstrap
问题 I want to show an HTML checkbox followed by the label to the right. I followed Pere Villega's suggestion, and modified the Play 2.1-SNAPSHOT version of views.helper.checkbox.scala as views.helper.twitterCheckbox.scala . My project uses the version of Twitter Bootstrap provided by Webjars: @** * Generate an HTML input checkbox for Twitter Bootstrap. * * Example: * {{{ * @checkbox(field = myForm("done")) * }}} * * @param field The form field. * @param args Set of extra HTML attributes ('''id'''