@(form: Form[_], typ: String, title: Html, route: Call, fields: Html, error: Option[Html] = None)(implicit ctx: Context)

@title

@error.map { e =>

@e


@trans.cancel() }.getOrElse { @helper.form(action = route, 'novalidate -> "novalidate") { @fields
@List("black" -> trans.black(), "random" -> trans.randomColor(), "white" -> trans.white()).map { color => }
} } @ctx.me.map { me =>
@lila.rating.PerfType.nonPuzzle.map { perfType =>
@trans.perfRatingX(Html(s"""${me.perfs(perfType.key).map(_.intRating).getOrElse("?")} ${perfType.name}"""))
}
}