<%= simple_form_for(@dashboard, :html=>{:id=>"frm_create_dashboard",:class=> "form-horizontal form-label-left"}, :url=>@url_path) do |f| %>

Create Dashboard <%= f.submit :Save , class: 'btn btn-success btn-sm pull-right btndashboard'%>

<% if current_user.customer_id == 0 %>
<%= f.input :customer_id, :collection => Customer.all.map{|c| [c.name,c.id]}, label:false, input_html: { class:'form-control'} %>
<% else %> <%= f.hidden_field :customer_id %> <% end %>
<%= f.input :name, input_html: { class: 'form-control col-md-7 col-xs-12'} , label: false %>
<%#= f.input :remaining_widgets, :collection => @remaining_widgets.map{|i,w| [w,i]}, label:false, input_html: { id:'widgetBox1', multiple:true, class:'form-control' } %>



<%= f.input :widgets, :collection => @dashboard.widgets.map{|i,w| [w,i]}, label:false, input_html: { id:'widgetBox2', multiple:true, class:'form-control' } %> <%#= (@dashboard.errors[:widgets].present?) ? raw(''+@dashboard.errors[:widgets].join("")+'') : '' %>


<% end %>