<div id="<%= dom_id page %>" class="mb-3" data-bs-scrollspy-target="#<%= dom_id(page.report, :page_nav_spy) %>" data-controller="bs-scrollspy">
  <div id="element_list">
    <% page.elements.each do |element| %>
      <%= render element %>
    <% end %>
  </div>

  <div>
    <%= turbo_frame_tag "new_element_frame" do %>
      <%= render partial: "pages/new_element_button", locals: { page: page } %>
    <% end %>
  </div>

  <%= link_to("Sprinte zum ersten Element", "##{dom_id(page.elements.first)}", class: "visually-hidden", data: {controller: :hotkey, hotkey: "e", turbo: false}) if page.elements.first %>
</div>
