<div class="field date-select">
  <%= f.label attr %>
  <div>
    <%= f.date_select attr, use_short_month: true, start_year: (local_assigns[:start_year].present?? start_year : 1990), end_year: (Date.today.year + 5), :include_blank => attr || false %>
  </div>
  <%- f.object.errors.full_messages_for(attr).uniq.each do |msg| -%>
    <%= content_tag :p, msg, role: 'alert' %>
  <% end %>
</div>
