@@ -17,7 +17,7 @@ object form:
17
17
title = trans.reportAUser.txt(),
18
18
moreCss = cssTag(" form3-captcha" ),
19
19
moreJs = captchaTag
20
- ) {
20
+ ):
21
21
main(cls := " page-small box box-pad report" )(
22
22
h1(cls := " box__top" )(trans.reportAUser()),
23
23
postForm(
@@ -41,29 +41,26 @@ object form:
41
41
)
42
42
),
43
43
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 =>
45
45
reqUser
46
- .map { user =>
46
+ .map: user =>
47
47
frag(userLink(user), form3.hidden(f, user.id.value.some))
48
- }
49
- .getOrElse {
48
+ .getOrElse:
50
49
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" ))
55
53
else
56
- form3.group(form(" reason" ), trans.reason()) { f =>
54
+ form3.group(form(" reason" ), trans.reason()): f =>
57
55
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):
60
58
form3.textarea(_)(rows := 8 )
61
- ) ,
59
+ ,
62
60
views.html.base.captcha(form, captcha),
63
61
form3.actions(
64
62
a(href := routes.Lobby .home)(trans.cancel()),
65
63
form3.submit(trans.send())
66
64
)
67
65
)
68
66
)
69
- }
0 commit comments