<commit_before>- press_summary = form_answer.press_summary || form_answer.build_press_summary
- url = press_summary.persisted? ? polymorphic_url([namespace_name, form_answer, press_summary]) : polymorphic_url([namespace_name, form_answer, :press_summaries])
= simple_form_for press_summary, url: url, remote: true, authenticity_token: true do |f|
  .form-group
    label.form-label Body
    .form-value.no-js-update
      p = press_summary.body.presence || content_tag(:i, "No Press Book Notes has been added yet")
    .input.form-group
      = f.input :body, as: :text, input_html: { class: 'form-control', rows: 4 }, label: false
    .clear

    - if policy(press_summary).update?
      = link_to "#", class: "form-edit-link pull-right" do
        span.glyphicon.glyphicon-pencil
        ' Edit
      = f.submit "Save", class: "btn btn-primary form-save-button pull-right"
      .clear

    - if press_summary.body.present?
      - if press_summary.reviewed_by_user
        - if press_summary.correct
          .form-group
            label.form-label
              ' Comments by Applicant
            p
              - if press_summary.comment.present?
                = press_summary.comment
              - else
                ' No comment by applicant
        - else
          p.p-empty Applicant has confirmed the Press Book Notes
      - else
        p.p-empty Applicant hasn't confirmed the Press Book Notes

- if press_summary.persisted? && policy(press_summary).approve?
  br
  br
  = button_to "Approve Press Book Notes", polymorphic_url([:approve, namespace_name, form_answer, press_summary]), class: "btn btn-default btn-block", remote: true<commit_msg>Restyle the admin press comment confirmed message<commit_after>- press_summary = form_answer.press_summary || form_answer.build_press_summary
- url = press_summary.persisted? ? polymorphic_url([namespace_name, form_answer, press_summary]) : polymorphic_url([namespace_name, form_answer, :press_summaries])
= simple_form_for press_summary, url: url, remote: true, authenticity_token: true do |f|
  .form-group
    label.form-label Body
    .form-value.no-js-update
      p = press_summary.body.presence || content_tag(:i, "No Press Book Notes has been added yet")
    .input.form-group
      = f.input :body, as: :text, input_html: { class: 'form-control', rows: 4 }, label: false
    .clear

    - if policy(press_summary).update?
      = link_to "#", class: "form-edit-link pull-right" do
        span.glyphicon.glyphicon-pencil
        ' Edit
      = f.submit "Save", class: "btn btn-primary form-save-button pull-right"
      .clear

    - if press_summary.body.present?
      - if press_summary.reviewed_by_user
        - if press_summary.correct
          .form-group
            label.form-label
              ' Comments by Applicant
            p
              - if press_summary.comment.present?
                = press_summary.comment
              - else
                ' No comment by applicant
        - else
          br
          .alert.alert-success
            ' Applicant has confirmed the Press Book Notes
      - else
        p.p-empty Applicant hasn't confirmed the Press Book Notes

- if press_summary.persisted? && policy(press_summary).approve?
  br
  br
  = button_to "Approve Press Book Notes", polymorphic_url([:approve, namespace_name, form_answer, press_summary]), class: "btn btn-default btn-block", remote: true
{'fraction_non_alphanumeric': 0.09970674486803519, 'fraction_numerical': 0.0005865102639296188, 'mean_word_length': 2.644230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6618', 'n_tokens_mistral': 1031, 'n_tokens_neox': 982, 'n_words': 256}