Skip to content

Commit

Permalink
fix tournament creation forms
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 23, 2017
1 parent 561f49c commit d1159bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/tournament/startingPosition.scala.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@(field: play.api.data.Field)(implicit ctx: Context)
<select name="@field.name">
@defining(chess.StartingPosition.initial) { v =>
<option value="@v.eco" @(if(field.value == Some(v.eco)) "selected" else "")>@v.name</option>
<option value="@v.fen" @(if(field.value == Some(v.fen)) "selected" else "")>@v.name</option>
}
@chess.StartingPosition.categories.map { categ =>
<optgroup label="@categ.name">
@categ.positions.map { v =>
<option value="@v.eco" @(if(field.value == Some(v.eco)) "selected" else "")>@v.fullName</option>
<option value="@v.fen" @(if(field.value == Some(v.fen)) "selected" else "")>@v.fullName</option>
}
</optgroup>
}
Expand Down

0 comments on commit d1159bb

Please sign in to comment.