@(id: Option[Long], product: Form[Product])(implicit flash: Flash)
@import views.ViewHelpers._
@main("Product: " + product("name").value.getOrElse("")) {
@if(product.hasErrors) {
Please fix the validation errors.
}
@helper.form(action = if (id.isDefined) routes.Application.update(id.get) else routes.Application.insert()) {
@helper.inputText(product("name"), '_label -> "Name")
@helper.inputText(product("ean"), '_label -> "EAN")
@helper.inputText(product("description"), '_label -> "Description", 'class -> "input-xxlarge")
}
}