<%= tag.div class: 'field' do %>
  <div>
    <%= f.label attr, local_assigns[:label], for: nil unless local_assigns[:skip_label] %>
  </div>

  <div>
    <%= f.label attr, class: "input-box" do %>    
      <%= f.select attr,
              choices,               
              { 
                include_blank: local_assigns[:include_blank].nil? ? true : local_assigns[:include_blank],
                multiple: local_assigns[:multiple]
              },
              { 
                data: { 
                  controller: 'select',
                  tags: local_assigns[:tags]
                } 
              } %>    
    <% end %>
    <%- f.object.errors.full_messages_for(attr).uniq.each do |msg| -%>
      <%= content_tag :p, msg, role: 'alert' %>
    <% end %>
  </div>  
<%- end -%>

