From d71966b5c0e8d0c354ceb79e3c3f4482a45c75ef Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 20 Jun 2014 16:39:09 +1000 Subject: [PATCH] Change show link to edit link on admin enterprises index --- app/views/admin/enterprises/index.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/enterprises/index.html.haml b/app/views/admin/enterprises/index.html.haml index b358011d89..db6f7707a0 100644 --- a/app/views/admin/enterprises/index.html.haml +++ b/app/views/admin/enterprises/index.html.haml @@ -26,10 +26,10 @@ = f.fields_for :collection do |enterprise_form| - enterprise = enterprise_form.object %tr{class: "enterprise-#{enterprise.id}"} - %td= link_to enterprise.name, main_app.admin_enterprise_path(enterprise) + %td= link_to enterprise.name, main_app.edit_admin_enterprise_path(enterprise) %td - if enterprise.is_primary_producer && enterprise.is_distributor - Producer & Distributor + Producer & Distributor - elsif enterprise.is_distributor Distributor - elsif enterprise.is_primary_producer