From 377c36c873c55148a6cf66aad6ea9380a145d2ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 10 Dec 2019 12:12:39 +0100 Subject: [PATCH] (re)introduced widget for health insurance --- cards/index.cgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cards/index.cgi b/cards/index.cgi index 639bb64..6fb7bae 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -21,6 +21,11 @@ edit="$(GET e |PATH)" [ "$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" -- 2.39.2