<%= simple_form_for @search, url: dashboard_search_path(@model_names), method: :post do |f| %>
<% @search_attributes.each do |attribute| %> <%= f.input "#{attribute[:name].to_s.gsub('.', '_')}_#{attribute[:term]}", required: false, label: false, placeholder: t("activerecord.attributes.#{@model_name}.#{attribute[:name]}") %> <% end %>
<%= f.submit t('carload.action.search'), class: 'btn btn-primary' %>
<% end %>