@(message: String)(playForm: Form[PlayDate])(games: List[String])(action: String)(users: List[SteamUser]) @import helper._ @main(title="New Play Date") {

New Play Date

@message

@if(action.equals("add")) { @form(action = routes.PlayDateController.createPlayDate, args = 'id -> "playForm") { @inputDate( field = playForm("date"), args = '_label -> "Date" ) @helper.input(playForm("time")) { (id, name, value, args) =>
} @select( field = playForm("game"), options = options(games), args = '_label -> "Game" ) Back } } else { @form(action = routes.PlayDateController.doEditPlayDate, args = 'id -> "playForm") { @helper.input(playForm("id")) { (id, name, value, args) => } @inputDate( field = playForm("date"), args = '_label -> "Date" ) @helper.input(playForm("time")) { (id, name, value, args) =>
} @select( field = playForm("game"), options = options(games), args = '_label -> "Game" ) Back } } }