@(computerForm: Form[Computer], companies: Map[String, String]) @import helper._ @main {

Add a computer

@form(routes.HomeController.save()) {
@CSRF.formField @inputText(computerForm("name"), '_label -> "Computer name", '_help -> "") @inputText(computerForm("introduced"), '_label -> "Introduced date", '_help -> "") @inputText(computerForm("discontinued"), '_label -> "Discontinued date", '_help -> "") @select( computerForm("company.id"), options(companies), '_label -> "Company", '_default -> "-- Choose a company --", '_showConstraints -> false )
or Cancel
} }