<%= simple_form_for(@client) do |f| %>
   <nav class="breadcrumb">
	    <a class="breadcrumb-item" href="<%= dashboard_path %>">Home</a>
	    <a class="breadcrumb-item active" href="<%= clients_path %>">Client</a>
	    <a class="breadcrumb-item active" href="#">
	        <% if !@client.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 :name ,:label =>false,:error => false,:placeholder =>'Please enter client name',input_html: { class: "form-control" } %>
             <%= f.error :name ,style: 'color: red' %> 
          </div>            
          <div class ="form-group" >
              <label for="email" class="string optional control-label">Email:</label>
              <%= f.input :email ,:error=>false,:label =>false ,:placeholder =>'Please enter client email',input_html: { class: "form-control" }  %>      
          </div>
          <div class ="form-group" >
              <label for="phone" class="string optional control-label">Phone:</label>
              <%= f.input :phone,:error=>false,:label =>false,:placeholder =>'Please enter client phone',input_html: { class: "form-control" }  %>           
          </div>
          <div class ="form-group" >
            <label for="address" class="string optional control-label">Address:</label>
            <%= f.input :address,:error=>false,:label =>false,:placeholder =>'Please enter client address',input_html: { class: "form-control" }  %>            
          </div>
          <% if @client.id.nil? %>
          <div class ="form-group" >
            <label for="address" class="string optional control-label">Location Code:</label>
            <%= f.input :location_code,:error=>false,:maxlength=>3,:label =>false,:placeholder =>'Please enter client location code',input_html: { class: "form-control" }  %>            
          </div>  
          <% end %>                                        
          <div class ="form-group" >
             <label></label>
              <div class="actions">
                 <%= f.button :submit, :class => 'btn btn-primary',:id =>'btn_submit' %>   
                 <%= link_to 'Cancel', clients_path ,:class => 'btn btn-primary',:id => 'btnback' %>
              </div>
          </div>
      </div>
  </div> 
<% end %>
