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

Manage Users - <%=@dashboard.name.titleize%> Dashboard (<%=(@dashboard.customer_id.present? and @dashboard.customer_id > 0) ? @dashboard.customer.name.titleize : "Global"%> Domain)<%= f.submit :Save , class: 'btn btn-success btn-sm pull-right'%>

<%= f.input :user_ids, :collection => @users.map{|i,w| [w,i]}, label:false, input_html: { id:'userBox1', multiple:true, class:'form-control select2' } %>
<% @dashboard_users.each do |duser| %> <% end %>
Name Email Remove
<%= duser.name %> <%= duser.email %> <%= link_to ''.html_safe, delete_users_admin_dashboard_path(:user => duser,:dashboard=>@dashboard), :title=>"Remove User", :alt=>"Remove User"%>
<% end %>