<h1><%= t("scaffold.pagetitle_edit", model: Element.model_name.human) %></h1>

<%= turbo_frame_tag dom_id(@element, :frame) do %>
  <div>
    <div class="d-flex">
    <h2 class="h3">
      <i class="bi bi-boxes">
          </i>
      <%= @element.title %>
      <%= link_to(tag.i(class: "bi bi-pencil"), @element, class: "btn btn-link text-warning") %>
    </div>
  <%= render "form", element: @element %>
  </div>
<% end %>

<div class="action-row">
  <%= link_to t("scaffold.link_show", model: Element.model_name.human), @element %>
  <%= link_to t("scaffold.link_index", model: Element.model_name.human(count: 2)), page_elements_path(@element.page) %>
</div>
