X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Fwidgets.sh;h=ab317fb8afd586b4a2cd5e31947ebeee57b676ef;hb=915db545f387cf9287b95f3ad5f84278bc2860d3;hp=9a71f198c4a9322ef6f465dba321290b5d6cc0f1;hpb=e039a460402b12988170c50f9a57b90af3183ed7;p=lobster diff --git a/cards/widgets.sh b/cards/widgets.sh index 9a71f19..ab317fb 100755 --- a/cards/widgets.sh +++ b/cards/widgets.sh @@ -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 +266,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 ;;