@(helloForm: Form[Application.Hello])
@import helper._
@main(title = "The 'createOrder' application") {
Configure your 'createOrder':
@form(action = routes.Application.sayHello, args = 'id -> "helloform") {
@inputText(
field = helloForm("name"),
args = '_label -> "Which item would you like to order?", 'placeholder -> "World"
)
@inputText(
field = helloForm("repeat"),
args = '_label -> "What quantity would you like to order?", 'size -> 3, 'placeholder -> 10
)
@select(
field = helloForm("color"),
options = options(
"" -> "Default",
"red" -> "Red",
"green" -> "Green",
"blue" -> "Blue"
),
args = '_label -> "Choose a color"
)
}
}