<commit_before><%= render "admin/shared/globalize_locales", resource: @page %>

<%= translatable_form_for [:admin, @page], html: {class: "edit_page", data: {watch_changes: true}} do |f| %>
  <% if @page.errors.any? %>
    <div id="error_explanation" data-alert class="callout alert" data-closable>
      <button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
        <span aria-hidden="true">&times;</span>
      </button>

      <strong>
        <%= @page.errors.count %>
        <%= t("admin.site_customization.pages.errors.form.error", count: @page.errors.count) %>
      </strong>
    </div>
  <% end %>

  <div class="small-12 column">
    <hr>
  </div>

  <div class="small-12 medium-5 column">
    <h3><%= t("admin.site_customization.pages.form.options") %></h3>
    <%= f.check_box :more_info_flag, class: "small" %>
    <%= f.check_box :print_content_flag %>
  </div>
  <div class="small-12 medium-3 column">
    <%= f.label :status %>
    <% ::SiteCustomization::Page::VALID_STATUSES.each do |status| %>
      <%= f.radio_button :status, status, label: false %>
      <%= f.label "status_#{status}", t("admin.site_customization.pages.page.status_#{status}") %>
      <br>
    <% end %>
  </div>

  <div class="small-12 medium-4 column">
    <%= f.label :slug %>
    <%= f.text_field :slug, label: false, size: 80, maxlength: 80 %>
  </div>
  <div class="small-12 column">
    <hr>  
    <%= f.translatable_text_field :title %>
    <%= f.translatable_text_field :subtitle %>
    <div class="ckeditor">
      <%= f.translatable_cktext_area :content %>
    </div>
    <div class="small-12 medium-6 large-3 margin-top">
      <%= f.submit class: "button success expanded" %>
    </div>
  </div>
<% end %><commit_msg>Remove trailing whitespaces<commit_after><%= render "admin/shared/globalize_locales", resource: @page %>

<%= translatable_form_for [:admin, @page], html: {class: "edit_page", data: {watch_changes: true}} do |f| %>
  <% if @page.errors.any? %>
    <div id="error_explanation" data-alert class="callout alert" data-closable>
      <button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
        <span aria-hidden="true">&times;</span>
      </button>

      <strong>
        <%= @page.errors.count %>
        <%= t("admin.site_customization.pages.errors.form.error", count: @page.errors.count) %>
      </strong>
    </div>
  <% end %>

  <div class="small-12 column">
    <hr>
  </div>

  <div class="small-12 medium-5 column">
    <h3><%= t("admin.site_customization.pages.form.options") %></h3>
    <%= f.check_box :more_info_flag, class: "small" %>
    <%= f.check_box :print_content_flag %>
  </div>
  <div class="small-12 medium-3 column">
    <%= f.label :status %>
    <% ::SiteCustomization::Page::VALID_STATUSES.each do |status| %>
      <%= f.radio_button :status, status, label: false %>
      <%= f.label "status_#{status}", t("admin.site_customization.pages.page.status_#{status}") %>
      <br>
    <% end %>
  </div>

  <div class="small-12 medium-4 column">
    <%= f.label :slug %>
    <%= f.text_field :slug, label: false, size: 80, maxlength: 80 %>
  </div>
  <div class="small-12 column">
    <hr>
    <%= f.translatable_text_field :title %>
    <%= f.translatable_text_field :subtitle %>
    <div class="ckeditor">
      <%= f.translatable_cktext_area :content %>
    </div>
    <div class="small-12 medium-6 large-3 margin-top">
      <%= f.submit class: "button success expanded" %>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20045172219085264, 'fraction_numerical': 0.012987012987012988, 'mean_word_length': 3.368680641183724, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '673394', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1242, 'n_words': 244}