diff options
author | Yorhel <git@yorhel.nl> | 2022-09-27 10:51:08 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-09-28 09:35:55 +0200 |
commit | b5834c47e4dff03ebfc97be3bed06a86d1c53ca5 (patch) | |
tree | 1ac73ecfa32366cdd26a0869d2108e10f63d272b /elm | |
parent | 09a6ada55aa1e35584327d4006a71295578fe967 (diff) |
ReleaseEdit: Update alt-title placeholder to indicate it can be left empty
Diffstat (limited to 'elm')
-rw-r--r-- | elm/ReleaseEdit.elm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/elm/ReleaseEdit.elm b/elm/ReleaseEdit.elm index ce841e99..82623745 100644 --- a/elm/ReleaseEdit.elm +++ b/elm/ReleaseEdit.elm @@ -367,7 +367,10 @@ viewTitle model i e = tr [] [ td [] [ langIcon e.lang ] , td [] [ inputText ("title_"++e.lang) (Maybe.withDefault "" e.title) (TitleTitle i) - (style "width" "500px" :: placeholder "Title (in the original script)" :: required (e.lang == model.olang) :: GRE.valTitlesTitle) + ( style "width" "500px" + :: placeholder (if e.lang == model.olang then "Title (in the original script)" else "Title (leave empty to use the main title)") + :: required (e.lang == model.olang) + :: GRE.valTitlesTitle) , if not (e.latin /= Nothing || containsNonLatin (Maybe.withDefault "" e.title)) then text "" else span [] [ br [] [] , inputText "" (Maybe.withDefault "" e.latin) (TitleLatin i) (style "width" "500px" :: placeholder "Romanization" :: GRE.valTitlesLatin) |