Skip to content

Commit

Permalink
adding event tips to new arena/swiss form
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantina07 committed Mar 7, 2023
1 parent 963bffa commit ef77809
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/swiss/form.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ object form:
div(cls := "swiss__form tour__form box box-pad")(
h1(cls := "box__top")(trans.swiss.newSwiss()),
postForm(cls := "form3", action := routes.Swiss.create(teamId))(
frag(
div(cls := "form-group")(
a(dataIcon := "", cls := "text", href := routes.Page.loneBookmark("event-tips"))(
trans.ourEventTips()
)
)
),
form3.split(fields.name, fields.nbRounds),
form3.split(fields.description, fields.rated),
fields.clock,
Expand Down
7 changes: 7 additions & 0 deletions app/views/tournament/form.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ object form:
else trans.createANewTournament()
),
postForm(cls := "form3", action := routes.Tournament.create)(
frag(
div(cls := "form-group")(
a(dataIcon := "", cls := "text", href := routes.Page.loneBookmark("event-tips"))(
trans.ourEventTips()
)
)
),
form3.globalError(form),
fields.name,
form3.split(fields.rated, fields.variant),
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/main/I18nKeys.scala
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ object I18nKeys:
val `lichessDbExplanation` = I18nKey("lichessDbExplanation")
val `switchSides` = I18nKey("switchSides")
val `closingAccountWithdrawAppeal` = I18nKey("closingAccountWithdrawAppeal")
val `ourEventTips` = I18nKey("ourEventTips")
val `opponentLeftCounter` = I18nKey("opponentLeftCounter")
val `mateInXHalfMoves` = I18nKey("mateInXHalfMoves")
val `nbBlunders` = I18nKey("nbBlunders")
Expand Down
1 change: 1 addition & 0 deletions translation/source/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -938,4 +938,5 @@ Leave empty to start games from the normal initial position.</string>
<string name="lichessDbExplanation">Rated games played on Lichess</string>
<string name="switchSides">Switch sides</string>
<string name="closingAccountWithdrawAppeal">Closing your account will withdraw your appeal</string>
<string name="ourEventTips">Our tips for organising events</string>
</resources>

0 comments on commit ef77809

Please sign in to comment.