X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Fwidgets.sh;h=8b5b986623c6100a2e42e2f2437318a4f9680df3;hb=b67065bfb57b072dd1c344eedabfbb545eae6629;hp=e1f659659ccec70221cad9fdc40cc9ba26f3ed26;hpb=bbe65b1be935821db60c01a28bd1d19164c63929;p=lobster diff --git a/cards/widgets.sh b/cards/widgets.sh index e1f6596..8b5b986 100755 --- a/cards/widgets.sh +++ b/cards/widgets.sh @@ -1,4 +1,4 @@ -# Copyright 2014 - 2019 Paul Hänsch +# Copyright 2014 - 2019, 2021 Paul Hänsch # # This file is part of Confetti. # @@ -22,12 +22,12 @@ cat <[label for="hi_select_list" $(l10n hi_from_list)][input type="radio" name="$item" value="other" #hi_other checked][label for="hi_other" $(l10n hi_other)][select class="item" name="hi_company" + [radio "$item" "list" .tab #hi_select_list checked][label for="hi_select_list" $(l10n hi_from_list)] + [radio "$item" "other" .tab #hi_other][label for="hi_other" $(l10n hi_other)] + [select .tab .item name="hi_company" [option value="" disabled="disabled" $(selected "${hi_name}" "") . $(l10n hi_company)] $(list_hi_companies |while read f; do printf '[option value="%s" %s . %s]' "$(pdi_unescape "$f" |HTML)" \ @@ -268,9 +267,9 @@ edit_item(){ "$(pdi_unescape "$f" |HTML)" done) ] - [input type="text" name="hi_other" value="$hi_name" placeholder="$(l10n hi_company)"] - [input name="hi_number" value="$(pdi_unescape "$hi_number" |HTML)" placeholder="$(l10n hi_number)"] - [input name="hi_status" value="$(pdi_unescape "$hi_status" |HTML)" placeholder="$(l10n hi_status)"] + [input type="text" .tab name="hi_other" value="$hi_name" placeholder="$(l10n hi_company)"] + [input type="text" name="hi_number" value="$(pdi_unescape "$hi_number" |HTML)" placeholder="$(l10n hi_number)"] + [input type="text" name="hi_status" value="$(pdi_unescape "$hi_status" |HTML)" placeholder="$(l10n hi_status)"] EOF done ;;