@**
* Generate an HTML checkbox group
*
* Example:
* {{{
* @inputCheckboxGroup(
* contactForm("hobbies"),
* options = Seq("S" -> "Surfing", "R" -> "Running", "B" -> "Biking","P" -> "Paddling"),
* '_label -> "Hobbies",
* '_error -> contactForm("hobbies").error.map(_.withMessage("select one or more hobbies")))
*
* }}}
*
* @param field The form field.
* @param options Sequence of options as pairs of value and HTML
* @param args Set of extra HTML attributes.
* @param handler The field constructor.
*@
@(field: play.api.data.Field, options: Seq[(String,String)], args: (Symbol,Any)*)(implicit handler: FieldConstructor, messages: play.api.i18n.Messages)
@input(field, args.map{ x => if(x._1 == '_label) '_name -> x._2 else x }:_*) { (id, name, value, htmlArgs) =>
@defining(field.indexes.map( i => field("[%s]".format(i)).value ).flatten.toSet) { values =>
@options.map { v =>
}
}
}