<commit_before><%
  addons = @addons || @item.try(:addons) || []
  addons = addons.select { |addon| [Cms::Addon::Body, Cms::Addon::File].include?(addon.klass) }
%>

<%= form_for :item, url: { action: :update }, html: { id: "item-form", method: :put, multipart: true, autocomplete: :off } do |f| %>
  <%= error_messages_for :item %>
  <%= render "cms/apis/preview/inplace_edit/main/link_errors", errors: @item.column_link_errors %>

  <%= hidden_field_tag :_updated, params[:_updated] || @item.updated if @item.respond_to?(:updated) %>

  <div class="addon-views">
    <%= render file: "_addons_form", locals: { f: f, addons: addons } if addons.size > 0 %>
  </div>

  <footer class="send">
    <%= f.submit creates_branch? ? t("cms.buttons.save_as_branch") : t("ss.buttons.save"), name: "save_if_no_alerts", class: 'btn-primary save' %>
    <%= f.button t("ss.buttons.close"), name: "cancel", class: 'btn-default btn-cancel', type: :reset %>
  </footer>
<% end %>

<%= jquery do %> SS.confirmUnloading(); <% end %><commit_msg>[fix] inplace preview edit error on faq page (#2612)<commit_after><%
  addons = @addons || @item.try(:addons) || []
  addons = addons.select { |addon| [Cms::Addon::Body, Cms::Addon::File].include?(addon.klass) }
%>

<%= form_for :item, url: { action: :update }, html: { id: "item-form", method: :put, multipart: true, autocomplete: :off } do |f| %>
  <%= hidden_field_tag :_updated, params[:_updated] || @item.updated if @item.respond_to?(:updated) %>

  <div class="addon-views">
    <%= render file: "_addons_form", locals: { f: f, addons: addons } if addons.size > 0 %>
  </div>

  <%= error_messages_for :item %>

  <footer class="send">
    <%= f.submit creates_branch? ? t("cms.buttons.save_as_branch") : t("ss.buttons.save"), name: "save_if_no_alerts", class: 'btn-primary save' %>
    <%= f.button t("ss.buttons.close"), name: "cancel", class: 'btn-default btn-cancel', type: :reset %>
  </footer>
<% end %>

<%= jquery do %> SS.confirmUnloading(); <% end %>
{'fraction_non_alphanumeric': 0.21536144578313254, 'fraction_numerical': 0.0030120481927710845, 'mean_word_length': 4.678062678062678, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2650479', 'n_tokens_mistral': 781, 'n_tokens_neox': 729, 'n_words': 158}