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

<%= turbo_frame_tag(dom_id(@success_criterion, :frame)) do %>
  <%= render "form", success_criterion: @success_criterion %>
<% end %>

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