<%= form_for @map_filter, method: :get, url: carte_path, data: { turbo: true, controller: 'autosubmit' } do |map_form| %>
<%= render Dsfr::RadioButtonListComponent.new(form: map_form, target: :kind, buttons: @map_filter.kind_buttons) do %>
<%= t('.map_choice_title') %>
<% end %>
<%= map_form.label :year, class: 'fr-label' %>
<%= map_form.select(:year, (2018..Date.current.year).to_a.reverse, { include_blank: t(:from_beginning, scope: 'activemodel.attributes.map_filter') }, { class: "fr-select" }) %>
<%= map_form.submit(name: nil, class: 'hidden', data: { autosubmit_target: 'submitter' } ) %>
<% end %>
<%= @map_filter.detailed_title %>
<% @map_filter.kind_legend_keys.each do |legend| %>
<%= @map_filter.legende_for(legend) %>
<% end %>
<%= render Dsfr::CalloutComponent.new(title: nil) do |c| %>
<% c.with_body do %>
démarches
dossiers
<% end %>
<% end %>