<%= simple_form_for(@batch) do |f| %>
   <nav class="breadcrumb">
	    <a class="breadcrumb-item" href="<%= dashboard_path %>">Home</a>
	    <a class="breadcrumb-item active" href="<%= batches_path %>">Batch</a>
	    <a class="breadcrumb-item active" href="#">
	        <% if !@batch.id.nil? %>
	            Edit
	        <% else %>
	            New
	        <% end %>
	    </a>
	</nav> 
	<div class="row">
      <div class="col-md-6" id="textbox_group">
          <div class ="form-group" >
             <label for="name" class="string optional control-label">Name:</label>
             <%= f.input :order_ref ,:label =>false,:error => false,:placeholder =>'Please enter  name',input_html: { class: "form-control" } %>
             <%= f.error :order_ref ,style: 'color: red' %> 
          </div>  
          <div class="form-group">
            <label for="client" class="string optional control-label">Select Client:</label>
            <%= select_tag "client_id", options_from_collection_for_select(@clients, "id", "name"), :class => 'form-control'%>           
          </div>
          <div class="form-group">
            <label for="product" class="string optional control-label">Select Product:</label>
            <%= select_tag "product_category_id", options_from_collection_for_select(@product, "id", "name"), :class => 'form-control'%>  
          </div>                                               
          <div class ="form-group" >
             <label></label>
              <div class="actions">
                 <%= f.button :submit, :class => 'btn btn-primary',:id =>'btn_submit' %>   
                 <%= link_to 'Cancel', batches_path ,:class => 'btn btn-primary',:id => 'btnback' %>
              </div>
          </div>
      </div>
  </div> 
<% end %>
