From 07ace99adc9569ab104b3da6039bdbdf12751197 Mon Sep 17 00:00:00 2001 From: Rob H Date: Thu, 24 Apr 2014 16:10:40 +1000 Subject: [PATCH] Add informational warnings to admin enterprises index page --- app/views/admin/enterprises/index.html.erb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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 @@ - + @@ -31,7 +31,13 @@ <% enterprise = enterprise_form.object %> - +
<%= 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 %>