From 466b10e797f1fe91cf705ad5cda23122bc5b8ed4 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 27 Mar 2014 14:04:19 +1100 Subject: [PATCH] Select all distributed products on order cycle admin page --- .../_exchange_distributed_products_form.html.haml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml b/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml index 97c8782485..3f7d7ba578 100644 --- a/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml +++ b/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml @@ -1,4 +1,9 @@ %td{:colspan => 3} + .exchange-select-all-variants + %label + = check_box_tag 'order_cycle_outgoing_exchange_{{ $parent.$index }}_select_all_variants', 1, 1, 'ng-model' => 'exchange.select_all_variants', 'ng-click' => 'setExchangeVariants(exchange, incomingExchangesVariants(), exchange.select_all_variants)', 'id' => 'order_cycle_outgoing_exchange_{{ $parent.$index }}_select_all_variants' + Select all + .exchange-product{'ng-repeat' => 'product in supplied_products | filter:productSuppliedToOrderCycle'} .exchange-product-details .supplier {{ product.supplier_name }}