anchor.diff:  		<% end %>
   	</div>
   </div>
  +<% end %>
  +
   
   
   <div class="row">
     <div class="col-md-12">
  -    
  -    <% mods = Rails.configuration.modules %>
  -    
  -    <ul class="nav nav-tabs" role="tablist" style="margin-bottom: 12px;">
  -      <% if mods.include? :marketing %>
  -        <% campaign_count = AffiliateCampaign.where(affiliate_id: @affiliate.id).count %>
  -        <li role="presentation" class="<%= "active" if ["campaigns", "", nil].include? params[:q] %>">
  -          <a href="<%= admin_system_affiliate_path(@affiliate, q: "campaigns")%>" role="tab"><%= tab_count('Marketing Campaigns', campaign_count) %></a>
  -        </li>
  -      <% end %>
  -      <% if mods.include? :store %>
  -        <%
  -           ap_count = AffiliateProduct.where(affiliate_id: @affiliate.id).count 
  -           order_count = Order.where(affiliate_id: @affiliate.id).count
  -           po_count = PurchaseOrder.where(supplier_id: @affiliate.id).count
  -        %>
  -        <li role="presentation" class="<%= "active" if params[:q] == "products" %>"><a href="<%= admin_system_affiliate_path(@affiliate, q: "products")%>" role="tab"><%= tab_count('Products', ap_count) %></a></li>
  -        <li role="presentation" class="<%= "active" if params[:q] == "orders" %>"><a href="<%= admin_system_affiliate_path(@affiliate, q: "orders")%>" role="tab"><%= tab_count('Orders', order_count) %></a></li>
  -        <li role="presentation" class="<%= "active" if params[:q] == "po" %>"><a href="<%= admin_system_affiliate_path(@affiliate, q: "po")%>" role="tab"><%= tab_count("PO's", po_count) %></a></li>
  -      <% end %>
  -      <% if mods.include? :billing %>
  -        <li role="presentation" class="<%= "active" if params[:q] == "payments" %>"><a href="<%= admin_system_affiliate_path(@affiliate, q: "payments")%>" role="tab">Payments</a></li>
  -      <% end %>
  -    </ul>
       
       <% if params[:q] == "products" %>
         <% ap_list = AffiliateProduct.joins(:product)
  
positive.code: <%= link_to "edit", edit_admin_system_affiliate_path(@affiliate), class: "btn btn-sm btn-default pull-right" %>
  <h2><i class="fa fa-rocket"></i> <%= @affiliate.name %></h2>
  <hr/>
  
  <div class="arow">
  	
  	<div class="col-md-8">
  
negative.code:         <% for ap in ap_list %>
        	<tr>
            <td><input type="checkbox" name="affiliate_product_id[]" value="<%= ap.id %>"></td>
            <td><%= link_to ap.product.sku, admin_store_product_path(ap.product)%></td>
            <td><%= ap.product.title %></td>
            <td><%= ap.sku %></td>
            <td><%= ap.price %></td>
  