<%= stylesheet_link_tag "dashboard" %>_
<%if @type == "supplier"%>

Suppliers

Register a New Supplier

<%= link_to "Back", {:controller => "suppliers_distributors", :action => "index"} %> <%= form_for @supplier, url: {controller: "suppliers_distributors", action: "create"}, html: {class: "suppliers_form"} do |f| %>
<%= f.text_field :name, class: 'form-control', placeholder: 'Supplier Name' %>
<%= f.submit "Create" %>
<% end %> <%else%>

Distributors

Register a New Distributor

<%= link_to "Back", {:controller => "suppliers_distributors", :action => "index"}%> <%= form_for @distributor, url: {controller: "suppliers_distributors", action: "create"}, html: {class: "distributors_form"} do |f| %>
<%= f.text_field :name, class: 'form-control', placeholder: 'Distributor Name' %>
<%= f.submit "Create" %>
<% end %> <%end%>
<%= javascript_include_tag "bootstrap.min" %>_