@(form: Form[_], config: lila.tournament.DataForm, me: User)(implicit ctx: Context) @import config._ @import lila.tournament.DataForm._ @moreJs = { @jsTag("tournamentForm.js") } @tournament.layout( title = s"${trans.newTournament()}", moreJs = moreJs) {

@trans.createANewTournament()

@globalError(form) @if(lila.tournament.DataForm.canPickName(me)) { }
@base.form.input(form("password"))
@base.form.input(form("name")) Arena
@errMsg(form("name")) Pick a very safe name for the tournament.
Anything even slightly inappropriate could get your account closed.
Leave empty to name the tournament after a random Grandmaster.
@base.form.select(form("variant"), translatedVariantChoicesWithVariants.map(x => x._1 -> x._2))
@tournament.startingPosition(form("position"))
@base.form.select(form("mode"), translatedModeChoices.map(x => x._1 -> x._2))
@base.form.select(form("waitMinutes"), waitMinuteChoices)


@trans.cancel()
@base.form.select(form("clockTime"), clockTimePrivateChoices) + @base.form.select(form("clockIncrement"), clockIncrementPrivateChoices)
@base.form.select(form("clockTime"), clockTimeChoices) + @base.form.select(form("clockIncrement"), clockIncrementChoices)
@base.form.select(form("minutes"), minutePrivateChoices)
@base.form.select(form("minutes"), minuteChoices)
@tournament.faq()
}