@(computerForm: Form[Computer], companies: Seq[(String, String)])(implicit requestHeader: MessagesRequestHeader) @import views.html.helper._ @main {

Add a computer

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

Dates are in yyyy-MM-dd format

or Cancel
} }