summaryrefslogtreecommitdiff
path: root/elm/UList/ManageLabels.elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-11-28 11:21:19 +0100
committerYorhel <git@yorhel.nl>2019-11-28 11:21:23 +0100
commit8825bb9df2487057bb65b69df67c93e7d793a37a (patch)
tree0a070d68abd5daf67f1526d5a7be3fa610d1d9c8 /elm/UList/ManageLabels.elm
parent4067f0a73a55e898def7320976781a2b8bf6710b (diff)
Use plain links for JS-ified linkradio inputs + fix focus of non-JS linkradios
Kind of backwards to use input elements to display a link when they're backed by Javascript anyway. This also avoids the need to create a unique id for each linkradio element.
Diffstat (limited to 'elm/UList/ManageLabels.elm')
-rw-r--r--elm/UList/ManageLabels.elm5
1 files changed, 2 insertions, 3 deletions
diff --git a/elm/UList/ManageLabels.elm b/elm/UList/ManageLabels.elm
index e2824ea2..7f951389 100644
--- a/elm/UList/ManageLabels.elm
+++ b/elm/UList/ManageLabels.elm
@@ -69,14 +69,13 @@ view : Model -> Html Msg
view model =
let
item n l =
- let strid = "form_pr" ++ String.fromInt n
- in tr [ class "compact" ]
+ tr [ class "compact" ]
[ td [] [ text <| if l.count == 0 then "" else String.fromInt l.count ]
, td [ class "stealth" ]
[ if l.id > 0 && l.id < 10 then text l.label
else inputText ("label_txt_"++String.fromInt n) l.label (Label n) GML.valLabelsLabel
]
- , td [ class "linkradio" ] [ inputCheck strid l.private (Private n), label [ for strid ] [ text "private" ] ]
+ , td [ ] [ linkRadio l.private (Private n) [ text "private" ] ]
, td [ class "stealth" ]
[ if l.id == 7 then b [ class "grayedout" ] [ text "applied when you vote" ]
else if l.id > 0 && l.id < 10 then b [ class "grayedout" ] [ text "built-in" ]