@(u: User, form: Form[_])(implicit ctx: Context) @title = @{ s"${u.username} - ${trans.editProfile.txt()}" } @account.layout( title = title, active = "editProfile", evenMoreCss =cssTag("material.form.css")) {

@trans.editProfile()

@trans.allInformationIsPublicAndOptional()
@base.form.group(form("country"), trans.country(), klass = "half") { @base.form.select(form("country"), lila.user.Countries.allPairs, default = "".some) } @base.form.group(form("location"), trans.location(), klass = "half") { @base.form.input(form("location")) }
@NotForKids { @base.form.group(form("bio"), Html(s"${trans.biography.txt()}")) {

@trans.biographyDescription()

}
@base.form.group(form("firstName"), trans.firstName(), klass = "half") { @base.form.input(form("firstName")) } @base.form.group(form("lastName"), trans.lastName(), klass = "half") { @base.form.input(form("lastName")) }
}
@List("fide", "uscf", "ecf").map { rn => @base.form.group(form(s"${rn}Rating"), trans.xRating(rn.toUpperCase), help=trans.ifNoneLeaveEmpty().some, klass = "third") { @base.form.input(form(s"${rn}Rating"), typ="number") } }
@base.form.group(form("links"), Html("Social media links ")) {

Such as Twitter, Facebook, Github, Chess.com, ...
One URL per line.

} @errMsg(form) @base.form.submit()
}