@field match {
case fileInput: input.FileInput => {
@fileInput.label | |
}
case textField: input.TextField => {
@textField.label |
@if(textField.textArea) {
|
} else {
|
}
}
case radioGroup: input.RadioGroup => {
@radioGroup.label |
@for((value, label) <- radioGroup.options) {
@label
}
|
}
case checkBox: input.CheckBox => {
@checkBox.label |
}
case selectField: input.SelectField => {
@selectField.label |
|
}
}
}