<div id="<%= dom_id page %>" class="mb-3">
  <h2>
    <i class="bi bi-file"></i>
    <%= page.position %> <%= page.path %></h2>
    <p>url: <%= page.url %></p>
  <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>
</div>
