<% if has_label %>
<%- label_options[:class] << ' label' %> <%- label_options[:class] << ' required' if html_options.delete(:required) %> <%= label attribute_name, label_text, label_options %>
<% end %>
<%- html_options[:class] << ' select' %> <%- html_options[:class] << ' is-danger' if errors[attribute_name].present? %>
<%= collection_select( attribute_name, collection, value_method, text_method, options, html_options) %>
<%- if hint_text.present? %>

<%= hint_text %>

<%- end %> <%- if errors[attribute_name].present? %>

<%= errors.full_messages_for(attribute_name).to_sentence %>

<%- end %>