From 891dee2c19bd2836e6818bffce1174f30c5d1ae5 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 14 Feb 2016 19:19:52 +0000 Subject: [PATCH] provide info about health insurance in card view svn path=/trunk/; revision=79 --- actions/update_card.sh | 6 ++++-- pages/cards.sh | 4 ++++ templates/attendees.css.sh | 32 +++++++++++++++++++++++++++++++- templates/edit_client.sh | 21 +++++++++++++++------ templates/view_client.sh | 7 +++++-- 5 files changed, 59 insertions(+), 11 deletions(-) diff --git a/actions/update_card.sh b/actions/update_card.sh index 1be1676..a810476 100755 --- a/actions/update_card.sh +++ b/actions/update_card.sh @@ -34,8 +34,10 @@ _POST[1N]="${_POST[1N]//;/,}" _POST[2N]="${_POST[2N]//;/,}" _POST[3N]="${_POST[3N]//;/,}" _POST[4N]="${_POST[4N]//;/,}" -[ -n "${_POST[hi_number]}" -o -n "${_POST[hi_company]}" ] \ -&& _POST[X-HEALTH-INSURANCE]="${_POST[hi_number]//;/,};${_POST[hi_company]//;/,}" + +[ "$_POST[hi_select]" = "list" ] && hi_company="${_POST[hi_company]}" || hi_company="${_POST[hi_other]}" +[ -n "${_POST[hi_company]}${_POST[hi_number]}${_POST[hi_status]}" ] \ +&& _POST[X-HEALTH-INSURANCE]="${hi_company//;/,};${_POST[hi_number]//;/,};${_POST[hi_status]//;/,}" sed -r 's;$;\r;' >"$tempfile" <$(l10n BDAY) - + $(if [ -n "$values[SOUND]" ]; then echo '