<commit_before>- content_for :right_column do
  #form-save.box
    %label.checkbox-inline
      %input{:type => 'checkbox'}
      = ::Comfy::Cms::Page.human_attribute_name(:is_published)
    %button.btn.btn-sm.btn-primary.pull-right
  = render 'comfy/admin/cms/files/index'

= render 'comfy/admin/cms/partials/page_form_before', :object => form

.l-constrained

= form.text_field :label, :data => {:slugify => @page.new_record?}, :autofocus => true

  - unless @site.pages.count == 0 || @site.pages.root == @page
    = form.text_field :slug, :data => {:slug => true}
    - unless @page.new_record?
      = form.text_field :full_path, :id => 'full-path', :disabled => true

  - if (options = ::Comfy::Cms::Layout.options_for_select(@site)).present?
    = form.select :layout_id, options, {}, 'data-url' => form_blocks_comfy_admin_cms_site_page_path(@site, @page.id.to_i)

  - if (options = ::Comfy::Cms::Page.options_for_select(@site, @page, nil, 0, false)).present?
    = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options

    = render 'comfy/admin/cms/partials/page_form_inner', :object => form

    = render :partial => 'comfy/admin/cms/categories/form', :object => form

    = render :partial => 'form_blocks'

.form-group
  .col-sm-12
    = form.check_box :is_published, :label => t('.is_published')

= render 'comfy/admin/cms/partials/page_form_after', :object => form

.l-article-status
  .l-constrained
    .form-group.form-actions
      .col-sm-12
        - unless @page.unsaved?
          = link_to t('.preview'), "https://www.moneyadviceservice.org.uk/#{I18n.locale}/articles#{@page.full_path}/preview", :class => 'btn btn-default', id: 'preview', target: '_blank'
        .btn-group.dropup
          = button_tag(class: 'btn btn-primary dropdown-toggle', "data-toggle" => "dropdown") do
            save
            %span.caret
          %ul{class: 'dropdown-menu', role: 'menu'}
            - page_state_buttons(@page.current_state).each do |state_event|
              %li
                = button_tag state_event[:label], value: state_event[:value], data: state_event[:data], type: 'submit', name: 'state_event', class: 'btn btn-primary state-event'<commit_msg>Add .l-content wrapper to form<commit_after>- content_for :right_column do
  #form-save.box
    %label.checkbox-inline
      %input{:type => 'checkbox'}
      = ::Comfy::Cms::Page.human_attribute_name(:is_published)
    %button.btn.btn-sm.btn-primary.pull-right
  = render 'comfy/admin/cms/files/index'

= render 'comfy/admin/cms/partials/page_form_before', :object => form

.l-constrained
  .l-content

  = form.text_field :label, :data => {:slugify => @page.new_record?}

    - unless @site.pages.count == 0 || @site.pages.root == @page
      = form.text_field :slug, :data => {:slug => true}
      - unless @page.new_record?
        = form.text_field :full_path, :id => 'full-path', :disabled => true

    - if (options = ::Comfy::Cms::Layout.options_for_select(@site)).present?
      = form.select :layout_id, options, {}, 'data-url' => form_blocks_comfy_admin_cms_site_page_path(@site, @page.id.to_i)

    - if (options = ::Comfy::Cms::Page.options_for_select(@site, @page, nil, 0, false)).present?
      = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options

      = render 'comfy/admin/cms/partials/page_form_inner', :object => form

      = render :partial => 'comfy/admin/cms/categories/form', :object => form

      = render :partial => 'form_blocks'

.form-group
  .l-constrained
    = form.check_box :is_published, :label => t('.is_published')

= render 'comfy/admin/cms/partials/page_form_after', :object => form

.l-article-status
  .l-constrained
    .form-group.form-actions
      .col-sm-12
        - unless @page.unsaved?
          = link_to t('.preview'), "https://www.moneyadviceservice.org.uk/#{I18n.locale}/articles#{@page.full_path}/preview", :class => 'btn btn-default', id: 'preview', target: '_blank'
        .btn-group.dropup
          = button_tag(class: 'btn btn-primary dropdown-toggle', "data-toggle" => "dropdown") do
            save
            %span.caret
          %ul{class: 'dropdown-menu', role: 'menu'}
            - page_state_buttons(@page.current_state).each do |state_event|
              %li
                = button_tag state_event[:label], value: state_event[:value], data: state_event[:data], type: 'submit', name: 'state_event', class: 'btn btn-primary state-event'
{'fraction_non_alphanumeric': 0.17548184670551323, 'fraction_numerical': 0.0031376064545047063, 'mean_word_length': 3.324612403100775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 38, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '817507', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1503, 'n_words': 268}