X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fprescriptions.html.sh;h=c4ef19addc060da015f8db7c6954aaebd23a38f1;hp=a662c74b229346376b8155acd737a66739762e0e;hb=1c7bba82f5b6bc81fdedb9e4907019462982a749;hpb=547778804d2beb3394ae47218d7490e6095b778c 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: