diff options
author | Yorhel <git@yorhel.nl> | 2020-12-15 18:06:00 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-12-15 18:06:02 +0100 |
commit | 532116b56a957b696f0e925f83c2506bfc5dcb00 (patch) | |
tree | acf5bc21a91e003c960b6112bc03fe8332c860f6 /elm | |
parent | 55935a625b6812558dfc6a536933c2cf34b35993 (diff) |
AdvSearch: Rename Staff ID filter to Name + add note
https://vndb.org/t14995.41
Diffstat (limited to 'elm')
-rw-r--r-- | elm/AdvSearch/Fields.elm | 2 | ||||
-rw-r--r-- | elm/AdvSearch/Staff.elm | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/elm/AdvSearch/Fields.elm b/elm/AdvSearch/Fields.elm index 39300b26..ac8b40ba 100644 --- a/elm/AdvSearch/Fields.elm +++ b/elm/AdvSearch/Fields.elm @@ -419,7 +419,7 @@ fields = , f C "Cup size" 0 FMCup AR.cupInit AR.cupFromQuery , f C "Seiyuu" 0 FMNest (staffInit C) (nestFromQuery C S) -- seiyuu subtype - , f S "ID" 0 FMStaff AT.init AT.fromQuery + , f S "Name" 0 FMStaff AT.init AT.fromQuery , f S "Language" 1 FMLang AS.init AS.langFromQuery , f S "Gender" 2 FMGender AS.init AS.genderFromQuery ] diff --git a/elm/AdvSearch/Staff.elm b/elm/AdvSearch/Staff.elm index eec3c86c..b0486dac 100644 --- a/elm/AdvSearch/Staff.elm +++ b/elm/AdvSearch/Staff.elm @@ -69,13 +69,13 @@ fromQuery dat qf = S.fromQuery (\q -> view : Data -> Model -> (Html Msg, () -> List (Html Msg)) view dat model = ( case Set.toList model.sel.sel of - [] -> b [ class "grayedout" ] [ text "ID" ] + [] -> b [ class "grayedout" ] [ text "Name" ] [s] -> span [ class "nowrap" ] [ S.lblPrefix model.sel , b [ class "grayedout" ] [ text <| "s" ++ String.fromInt s ++ ":" ] , Dict.get s dat.staff |> Maybe.map (\e -> e.name) |> Maybe.withDefault "" |> text ] - l -> span [] [ S.lblPrefix model.sel, text <| "IDs (" ++ String.fromInt (List.length l) ++ ")" ] + l -> span [] [ S.lblPrefix model.sel, text <| "Names (" ++ String.fromInt (List.length l) ++ ")" ] , \() -> [ div [ class "advheader" ] [ h3 [] [ text "Staff identifier" ] @@ -89,5 +89,6 @@ view dat model = ] ) (Set.toList model.sel.sel) , A.view model.conf model.search [ placeholder "Search..." ] + , b [ class "grayedout" ] [ text "All aliases of the selected staff entries are searched, not just the names you specified." ] ] ) |