summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-09-27 10:51:08 +0200
committerYorhel <git@yorhel.nl>2022-09-28 09:35:55 +0200
commitb5834c47e4dff03ebfc97be3bed06a86d1c53ca5 (patch)
tree1ac73ecfa32366cdd26a0869d2108e10f63d272b /elm
parent09a6ada55aa1e35584327d4006a71295578fe967 (diff)
ReleaseEdit: Update alt-title placeholder to indicate it can be left empty
Diffstat (limited to 'elm')
-rw-r--r--elm/ReleaseEdit.elm5
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)