Combine search options into a row
This commit is contained in:
parent
40868e170b
commit
e73003aace
1 changed files with 17 additions and 15 deletions
|
@ -397,21 +397,23 @@ searchBar model =
|
|||
, label = E.text "Search"
|
||||
}
|
||||
]
|
||||
, Input.radio [ E.padding 10 ]
|
||||
{ onChange = UpdateCriteria << UpdateSortBy
|
||||
, selected = Just model.criteria.sortBy
|
||||
, label = Input.labelLeft [ Font.color colors.text ] (E.text "Sort by")
|
||||
, options =
|
||||
[ Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC"
|
||||
, Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC"
|
||||
]
|
||||
}
|
||||
, Input.checkbox []
|
||||
{ onChange = UpdateCriteria << UpdateOwnedOnly
|
||||
, icon = Input.defaultCheckbox
|
||||
, checked = model.criteria.ownedOnly
|
||||
, label = Input.labelRight [ Font.color colors.text ] (E.text "Owned only?")
|
||||
}
|
||||
, E.row [ E.spacing 10 ]
|
||||
[ Input.radio [ E.padding 10 ]
|
||||
{ onChange = UpdateCriteria << UpdateSortBy
|
||||
, selected = Just model.criteria.sortBy
|
||||
, label = Input.labelLeft [ Font.color colors.text ] (E.text "Sort by")
|
||||
, options =
|
||||
[ Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC"
|
||||
, Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC"
|
||||
]
|
||||
}
|
||||
, Input.checkbox []
|
||||
{ onChange = UpdateCriteria << UpdateOwnedOnly
|
||||
, icon = Input.defaultCheckbox
|
||||
, checked = model.criteria.ownedOnly
|
||||
, label = Input.labelRight [ Font.color colors.text ] (E.text "Owned only?")
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue