$(view_card "$client")
-$(l10n prescriptions_current)
-
-${edit:+$(edit_prescription "$edit")}
+
+EOF
-$(list_prescriptions "$client" \
- |while read pre; do
- view_prescription "$pre"
- done
-)
+list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit"
-$(l10n prescriptions_past)
+list_prescriptions "$client" \
+|while read pre; do
+ [ "$pre" = "$edit" ] \
+ && edit_prescription "$pre" \
+ || view_prescription "$pre"
+done
-EOF
+#
# vi:set filetype=html: