Skip to content

Commit 4ddc764

Browse files
committed
scala tweaks
1 parent cb46f48 commit 4ddc764

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

app/views/report/form.scala

+11-14
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object form:
1717
title = trans.reportAUser.txt(),
1818
moreCss = cssTag("form3-captcha"),
1919
moreJs = captchaTag
20-
) {
20+
):
2121
main(cls := "page-small box box-pad report")(
2222
h1(cls := "box__top")(trans.reportAUser()),
2323
postForm(
@@ -41,29 +41,26 @@ object form:
4141
)
4242
),
4343
form3.globalError(form),
44-
form3.group(form("username"), trans.user(), klass = "field_to complete-parent") { f =>
44+
form3.group(form("username"), trans.user(), klass = "field_to complete-parent"): f =>
4545
reqUser
46-
.map { user =>
46+
.map: user =>
4747
frag(userLink(user), form3.hidden(f, user.id.value.some))
48-
}
49-
.getOrElse {
48+
.getOrElse:
5049
div(form3.input(f, klass = "user-autocomplete")(dataTag := "span", autofocus))
51-
}
52-
},
53-
if (ctx.req.queryString contains "reason")
54-
form3.hidden(form("reason"))
50+
,
51+
if ctx.req.queryString contains "reason"
52+
then form3.hidden(form("reason"))
5553
else
56-
form3.group(form("reason"), trans.reason()) { f =>
54+
form3.group(form("reason"), trans.reason()): f =>
5755
form3.select(f, translatedReasonChoices, trans.whatIsIheMatter.txt().some)
58-
},
59-
form3.group(form("text"), trans.description(), help = trans.reportDescriptionHelp().some)(
56+
,
57+
form3.group(form("text"), trans.description(), help = trans.reportDescriptionHelp().some):
6058
form3.textarea(_)(rows := 8)
61-
),
59+
,
6260
views.html.base.captcha(form, captcha),
6361
form3.actions(
6462
a(href := routes.Lobby.home)(trans.cancel()),
6563
form3.submit(trans.send())
6664
)
6765
)
6866
)
69-
}

0 commit comments

Comments
 (0)