X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fprescriptions.html.sh;h=a662c74b229346376b8155acd737a66739762e0e;hp=a3db3a7d879157a24982c309ca357f5f2d58a76e;hb=547778804d2beb3394ae47218d7490e6095b778c;hpb=fdfc261b61998249782240ecb0d40a10d44936a9 diff --git a/templates/prescriptions.html.sh b/templates/prescriptions.html.sh index a3db3a7..a662c74 100755 --- a/templates/prescriptions.html.sh +++ b/templates/prescriptions.html.sh @@ -25,7 +25,6 @@ cat <$(l10n prescriptions_current) -${edit:+$(edit_prescription "$edit")}
@@ -33,9 +32,13 @@ ${edit:+$(edit_prescription "$edit")}
+$(list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit") + $(list_prescriptions "$client" \ |while read pre; do - [ "$pre" = "$edit" ] || view_prescription "$pre" + [ "$pre" = "$edit" ] \ + && edit_prescription "$pre" \ + || view_prescription "$pre" done )