X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Findex.cgi;h=0bb4f827c26cf53b7c934039d5260f3a88abe739;hb=b9f386037364d4a10931c37acb464f0bf6d0e5d3;hp=934c19ac3bf2499b3aee9adf0440188739a6e3f2;hpb=5b8d1b752ede7a6dc4250620ca58971447570a76;p=lobster diff --git a/cards/index.cgi b/cards/index.cgi index 934c19a..0bb4f82 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -11,15 +11,20 @@ filter="$(GET f)" order="$(GET o)" edit="$(GET e |PATH)" -[ "$order" ] || order=firstname +[ "$order" ] || order=lastname edit="${edit##*/}" +list_hi_companies(){ + sed -rn 's;^X-HEALTH-INSURANCE:([^\;]+)\;.*$;\1;p' ${_DATA}/vcard/*vcf \ + | sort -u +} + { w_filter_diag printf ' [form class="newcard" action="/cards/new_card.sh" method="POST" + [a href="#top" . %s] [button type="submit" %s] - [input name="seed" placeholder="%s"] - ]' "$(l10n newcard)" "$(l10n vcf_seed_label)" + ]' "$(l10n top)" "$(l10n newcard)" [ "$edit" ] && edit_card "$edit" list_cards } | yield_page cards #/cards/cards.css