diff --git a/app/views/admin/enterprises/index.html.erb b/app/views/admin/enterprises/index.html.erb index c44759be3f..4047dc8b0d 100644 --- a/app/views/admin/enterprises/index.html.erb +++ b/app/views/admin/enterprises/index.html.erb @@ -13,7 +13,7 @@
| <%= link_to enterprise.name, main_app.admin_enterprise_path(enterprise) %> | -<%= 'PP ' if enterprise.is_primary_producer %><%= 'D' if enterprise.is_distributor %> | +<% if enterprise.is_primary_producer && enterprise.is_distributor %> Producer & Distributor + <% elsif enterprise.is_distributor %> Distributor + <% elsif enterprise.is_primary_producer %> Producer + <% else %> + + <% end %> + | <%= enterprise.description %> |
@@ -41,16 +47,16 @@
<% if enterprise.is_distributor %>
<%= link_to_with_icon 'icon-chevron-right', 'Payment Methods', spree.admin_payment_methods_path(enterprise_id: enterprise.id) %> (<%= enterprise.payment_methods.count %>)
<% if enterprise.payment_methods.count == 0 %>
-
+
<% end %> <%= link_to_with_icon 'icon-plane', 'Shipping Methods', spree.admin_shipping_methods_path(enterprise_id: enterprise.id) %> (<%= enterprise.shipping_methods.count %>) <% if enterprise.shipping_methods.count == 0 %> - + <% end %> <% end %> <%= link_to_with_icon 'icon-money', 'Enterprise Fees', main_app.admin_enterprise_fees_path(enterprise_id: enterprise.id) %> (<%= enterprise.enterprise_fees.count %>) <% if enterprise.enterprise_fees.count == 0 %> - + <% end %> |