<commit_before>
  <% if resource.safe_to_preview? %>
  <p>This edition can be previewed at <%= link_to preview_edition_path(resource), preview_edition_path(resource) %>.</p>
  <% else %>
  <p>This edition is not yet ready to be previewed.</p>
  <% end %>

  <p>Fact check responses should (when appropriate) be sent to <%= mail_to resource.fact_check_email_address %></p>
  <hr />

<div class="row">
  <div class="col-md-6">
    <%= semantic_form_for(:note, :url=> notes_path) do |f| %>
      <%= f.inputs do %>
        <%= hidden_field_tag :edition_id, resource.id %>
        <%= f.input :comment, :label => 'Edition notes', :as => :text, :required => false, :input_html => { :class=> 'form-control', :rows => 6, :cols => 120 } %>
        <p class="help-block">Summarise your changes, and briefly explain why if you didn't make any requested changes.</p>

        <button class="btn btn-success" name="commit"><i class="glyphicon glyphicon-comment"></i> Save note</button>
      <% end %>
    <% end %>
    <hr />
    <%= semantic_form_for(@resource, :url=> edition_path(@resource), :as => :edition, :html => { :id => 'important_note', :class => 'add-top-margin' }) do |f| %>
      <%= f.input :important_note, :label => 'Important note', :as => :text, :input_html => { :class => 'form-control', :rows => 6, :cols => 120 }, :hint => 'Add important notes that anyone who works on this edition needs to see, eg "(Doesn\'t) need fact check, don\'t publish."' %>
      <%= f.submit :class=>"btn btn-danger", :value=>'Save important note' %>
    <% end %>

  </div>

  <div id="edition-history" class="col-md-6 panel-group">
    <h4 class="remove-top-margin">Notes</h4>
    <%= render collection: @resource.history, partial: '/shared/edition_history', as: 'edition' %>
  </div>
</div><commit_msg>Make notes full width beneath forms<commit_after>
<% if resource.safe_to_preview? %>
  <p>This edition can be previewed at <%= link_to preview_edition_path(resource), preview_edition_path(resource) %>.</p>
<% else %>
  <p>This edition is not yet ready to be previewed.</p>
<% end %>

<p>Fact check responses should be sent to <%= mail_to resource.fact_check_email_address %></p>
<hr />

<div class="row">
  <div class="col-md-6">
  <%= semantic_form_for(:note, :url=> notes_path) do |f| %>
    <%= f.inputs do %>
      <%= hidden_field_tag :edition_id, resource.id %>
      <%= f.input :comment, :label => 'Edition notes', :as => :text, :required => false, :input_html => { :class=> 'form-control input-md-5', :rows => 6, :cols => 120 } %>
      <p class="help-block">Summarise your changes, and briefly explain why if you didn't make any requested changes.</p>

      <button class="btn btn-success" name="commit">Save note</button>
    <% end %>
  <% end %>
  </div>
  <div class="col-md-6">
  <%= semantic_form_for(@resource, :url=> edition_path(@resource), :as => :edition, :html => { :id => 'important_note' }) do |f| %>
    <%= f.input :important_note, :label => 'Important note', :as => :text, :input_html => { :class => 'form-control input-md-5', :rows => 6, :cols => 120 }, :hint => 'Add important notes that anyone who works on this edition needs to see, eg "(Doesn\'t) need fact check, don\'t publish."' %>
    <%= f.submit :class=>"btn btn-danger", :value=>'Save important note' %>
  <% end %>
  </div>
</div>
<hr />

<div id="edition-history" class="panel-group">
  <h3 class="add-bottom-margin">Notes</h3>
  <%= render collection: @resource.history, partial: '/shared/edition_history', as: 'edition' %>
</div>
{'fraction_non_alphanumeric': 0.19601706970128022, 'fraction_numerical': 0.007396870554765292, 'mean_word_length': 3.9943181818181817, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 122, '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': '7229027', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1162, 'n_words': 327}