Skip to content

Commit

Permalink
fix game search form
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 19, 2016
1 parent 47fc97c commit d0d0fca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/search/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h1 class="title">@trans.advancedSearch()</h1>
</th>
<td>
<div class="half">By @base.select(form("sort")("field"), Sorting.fields)</div>
<div class="half">Order @base.select(form("sort")("order"), Sorting.orders)</div>
<div class="half">@base.select(form("sort")("order"), Sorting.orders)</div>
</td>
</tr>
<tr>
Expand Down
4 changes: 3 additions & 1 deletion modules/gameSearch/src/main/Sorting.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ object Sorting {
Fields.turns -> "Moves",
Fields.averageRating -> "Rating")

val orders = List("desc", "asc") map { s => s -> s }
val orders = List(
"desc" -> "Descending",
"asc" -> "Ascending")

val default = Sorting(Fields.date, "desc")
}

0 comments on commit d0d0fca

Please sign in to comment.