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

  <div>
    <div class="d-flex">
    <h2 class="h3">
      <i class="bi bi-boxes">
          </i>
      <%= @element.title %>
    </div>
  <%= render "form", element: @element %>
  </div>
<% unless modal? %>
  <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>
<% end %>
