@(js: String => String, commentForm: Form[Comment]) @import helper._ @import helper.twitterBootstrap._ @title = { Add a new comment Or edit an existing comment } @main(title, nav = "comment") { @if(commentForm.hasErrors) {

Oops Please fix all errors

} @helper.form(action = routes.Comments.submit, args = 'id -> "commentForm") {
Send us a nice comment! @inputText( commentForm("firstname"), '_label -> "First name" ) @inputText( commentForm("lastname"), '_label -> "Last name" ) @inputText( commentForm("company"), '_label -> "Company" ) @inputText( commentForm("email"), '_label -> "Email" ) @inputText( commentForm("phone"), '_label -> "Phone" ) @inputText( commentForm("message"), '_label -> "Message" )
Cancel
} }