Index: openacs-4/packages/theme-zen/www/doc/lists/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/theme-zen/www/doc/lists/index.tcl,v diff -u -N -r1.4 -r1.5 --- openacs-4/packages/theme-zen/www/doc/lists/index.tcl 7 Aug 2017 23:48:29 -0000 1.4 +++ openacs-4/packages/theme-zen/www/doc/lists/index.tcl 1 Jul 2018 09:37:31 -0000 1.5 @@ -4,12 +4,12 @@ template::list::create -name order_lines \ -multirow order_lines \ -key item_id \ - -actions [list "Add item" [export_vars -base item-add {order_id}] "Add item to this order"] \ + -actions [list "Add item" [export_vars -base . {order_id}] "Add item to this order"] \ -html [list summary "List of delicious fruits"] \ -caption "Some delicious fruits?" \ -bulk_actions { - "Remove" "item-remove" "Remove checked items" - "Copy" "item-copy" "Copy checked items to clipboard" + "Remove" "#" "Remove checked items" + "Copy" "#" "Copy checked items to clipboard" } -bulk_action_method post -bulk_action_export_vars { order_id } -row_pretty_plural "order items" -elements { @@ -32,17 +32,20 @@ } } +template::multirow create order_lines item_id quantity item_name item_price item_url +template::multirow append order_lines 123 70 raspberry 100 . +template::multirow append order_lines 124 5 banana 55 . -db_multirow -extend { item_url } order_lines select_order_lines { - select l.item_id, - l.quantity, - l.name as item_name, - l.price as item_price - from order_lines l - where l.order_id = :order_id -} { - set item_url [export_vars -base "item" { item_id }] -} +# db_multirow -extend { item_url } order_lines select_order_lines { +# select l.item_id, +# l.quantity, +# l.name as item_name, +# l.price as item_price +# from order_lines l +# where l.order_id = :order_id +# } { +# set item_url [export_vars -base "item" { item_id }] +# } # Local variables: # mode: tcl