X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fprescriptions.html.sh;h=c4ef19addc060da015f8db7c6954aaebd23a38f1;hp=a662c74b229346376b8155acd737a66739762e0e;hb=be911da6c63f2129a62dc50f92b749e0f2bb67ee;hpb=50d25cddfd2f0314556b4344290b47655a929c5f diff --git a/templates/prescriptions.html.sh b/templates/prescriptions.html.sh index a662c74..c4ef19a 100755 --- a/templates/prescriptions.html.sh +++ b/templates/prescriptions.html.sh @@ -31,19 +31,17 @@ cat <$(l10n newprescription) +EOF -$(list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit") - -$(list_prescriptions "$client" \ - |while read pre; do - [ "$pre" = "$edit" ] \ - && edit_prescription "$pre" \ - || view_prescription "$pre" - done -) +list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit" - +list_prescriptions "$client" \ +|while read pre; do + [ "$pre" = "$edit" ] \ + && edit_prescription "$pre" \ + || view_prescription "$pre" +done -EOF +# # vi:set filetype=html: