From d6341b65e50b1d37bbad481c803107332cfe09f2 Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 20 Jun 2014 16:22:55 +1000 Subject: [PATCH] Add edit button to Order cycles index --- app/views/admin/order_cycles/_row.html.haml | 2 ++ app/views/admin/order_cycles/index.html.haml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/admin/order_cycles/_row.html.haml b/app/views/admin/order_cycles/_row.html.haml index 4396fabcba..75e84de025 100644 --- a/app/views/admin/order_cycles/_row.html.haml +++ b/app/views/admin/order_cycles/_row.html.haml @@ -21,5 +21,7 @@ %br/ %span.with-tip{'data-powertip' => variant_images}= "#{order_cycle.variants.count} variants" + %td.actions + = link_to '', main_app.edit_admin_order_cycle_path(order_cycle), class: 'edit-order-cycle icon-edit no-text' %td.actions = link_to '', main_app.clone_admin_order_cycle_path(order_cycle), class: 'clone-order-cycle icon-copy no-text' diff --git a/app/views/admin/order_cycles/index.html.haml b/app/views/admin/order_cycles/index.html.haml index c3f4bc0b8f..22edccf0e7 100644 --- a/app/views/admin/order_cycles/index.html.haml +++ b/app/views/admin/order_cycles/index.html.haml @@ -18,6 +18,7 @@ %col %col %col + %col %thead %tr @@ -29,6 +30,7 @@ %th Distributors %th Products %th.actions + %th.actions %tbody = f.fields_for :collection do |order_cycle_form|