<%
  page_title = Typus::I18n.t("Edit %{resource} %{id}", :resource => @resource.model_name.human.titlecase, :id => @item.identifier)
  admin_title(page_title)
%>

<% content_for :main_grid do %>
  <%= render 'edit' %>

  <% unless headless_mode? %>
    <h1><%= page_title %></h1>
  <% end %>

  <%= admin_display_flash_message %>

  <% locals = { :options => params.dup.cleanup.merge!(:action => 'update') } %>
  <%= render 'form', locals %>

  <% unless headless_mode? %>
    <%= render 'admin/shared/modals' %>
    <%= render 'admin/templates/modals/paperclip' %>
    <%= typus_relationships %>
  <% end %>
<% end %>

<%
  page_title = Typus::I18n.t("Edit %{resource} %{id}", :resource => @resource.model_name.human.titlecase, :id => @item.identifier)
  page_title = "Edit #{@resource.model_name.human.titlecase}: #{@item.to_label}" if @resource.instance_methods(false).include?(:to_label)
  admin_title(page_title)
%>

<% content_for :main_grid do %>
  <%= render 'edit' %>

  <% unless headless_mode? %>
    <h1><%= page_title %></h1>
  <% end %>

  <%= admin_display_flash_message %>

  <% locals = { :options => params.dup.cleanup.merge!(:action => 'update') } %>
  <%= render 'form', locals %>

  <% unless headless_mode? %>
    <%= render 'admin/shared/modals' %>
    <%= render 'admin/templates/modals/paperclip' %>
    <%= typus_relationships %>
  <% end %>
<% end %>

Use to_label method for Edit title, if it's defined on the resource
Use to_label method for Edit title, if it's defined on the resource
