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