Back to Frontend

RadioField.Scala

identity/app/views/fragments/form/radioField.scala.html

latest451 B
Original Source

@(field: Field, valueAndLabel: List[(String, String)], args: (Symbol, Any)*)(implicit handler: views.html.helper.FieldConstructor, messages: play.api.i18n.Messages) @* * This input helper should be used with the multiInputFieldConstructor *@ @import views.html.helper.input @import play.api.templates.PlayMagic.toHtmlArgs @input(field, args:_*) { (id, name, value, htmlArgs) => @for((inputValue, inputLabel) <- valueAndLabel) { @inputLabel } }