Skip to content

Commit

Permalink
don't forget standard initial position in tournament creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 8, 2015
1 parent 443aa61 commit fae498e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/views/tournament/form.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ <h1>@trans.createANewTournament()</h1>
<td>
@defining(form("position")) { field =>
<select name="@field.name">
@defining(chess.StartingPosition.initial) { v =>
<option value="@v.eco" @(if(field.value == Some(v.eco)) "selected" else "")>@v.name</option>
}
@chess.StartingPosition.categories.map { categ =>
<optgroup label="@categ.name">
@categ.positions.map { v =>
Expand Down
1 change: 0 additions & 1 deletion app/views/tournament/side.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@setup(tour)
@systemName(tour.system).capitalize
(<a href="@routes.Tournament.help(tour.system.toString.toLowerCase.some)">?</a>)
• @showMinutes(tour.minutes)
</div>
</div>
@if(tour.createdBy == "lichess") {
Expand Down

0 comments on commit fae498e

Please sign in to comment.