<commit_before><% title "New Prism" %>
<h1>New Prism</h1>

<%= form_for(@prism) do |f| %>
  <% if @prism.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@prism.errors.count, "error") %> prohibited this prism from being saved:</h2>

    <ul>
      <% @prism.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  </div>
  <% end %>

  <div class="field" id="content">
    <%= f.label :content %>
    <%= f.text_area :content %>
  </div>

  <div id="sidebar">
    <div id="facetbutton">
     <%= fields_for :facet1 do |f1| %>
        <div class="field">
          <%= image_tag('facetblue.png') %>
          <%= f1.text_field :description, :placeholder => 'Facet 1' %>
        </div>
      <% end %>

      <%= fields_for :facet2 do |f2| %>
        <div class="field">
        <%= image_tag('facetred.png') %>
          <%= f2.text_field :description, :placeholder => 'Facet 2' %>
        </div>
      <% end %>

      <%= fields_for :facet3 do |f3| %>
        <div class="field">
          <%= image_tag('facetgreen.png') %>
          <%= f3.text_field :description, :placeholder => 'Facet 3' %>
        </div>
      <% end %>
    </div>

    <div class="field">
      <%= f.label :title %>
      <%= f.text_field :title, :placeholder => 'Required: Give your Prism a title!'  %>
    </div>
    <div class="field">
      <%= f.label :author %>
      <%= f.text_field :author, :placeholder => 'Required: Original Author'  %>
    </div>
    <div class="field">
      <%= f.label :publication_date %>
      <%= f.text_field :publication_date, :placeholder => 'You know the drill...mm/dd/year'  %>
    </div>
    <div class="field">
      <% @language_dump = LanguageList::COMMON_LANGUAGES %>
      <% @languages = [] %>
      <% @language_dump.each do |lang| %>
        <% @languages.push(lang.name) %>
      <% end %>
      <%= f.label :language %>
      <%= f.select :language, options_for_select(@languages, "English") %>
    </div>

    <div class="field">
      <%= f.label :description %>
      <%= f.text_area :description, :rows => 6, :placeholder => 'What do you want people to know about this text or your facet categories?' %>
    </div>
    <div class ="field">
      <%= f.check_box :unlisted%>
      <%= f.label :unlisted %>
      <p>Check this box if you want to share your prism with friends only (you'll need to email the link to friends).</p>
    </div>

    <%= render "cc_license_form" %>

    <div class="actions">
      <p>Wait! Before you submit, read our <%= link_to "Terms of Service", terms_path %>!</p>
      <%= f.submit :class => 'button' %>
    </div>
  </div>
<% end %>
<commit_msg>Closes #237 - adds hint to content field and also converts the rest of the non-sentence placeholder text fields into title case. Before the casing wasn't titlecase.<commit_after><% title "New Prism" %>
<h1>New Prism</h1>

<%= form_for(@prism) do |f| %>
  <% if @prism.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@prism.errors.count, "error") %> prohibited this prism from being saved:</h2>

    <ul>
      <% @prism.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  </div>
  <% end %>

  <div class="field" id="content">
    <%= f.label :content %>
    <%= f.text_area :content, :placeholder => 'Required: The Text Your Group Will Be Highlighting' %>
  </div>

  <div id="sidebar">
    <div id="facetbutton">
     <%= fields_for :facet1 do |f1| %>
        <div class="field">
          <%= image_tag('facetblue.png') %>
          <%= f1.text_field :description, :placeholder => 'Facet 1' %>
        </div>
      <% end %>

      <%= fields_for :facet2 do |f2| %>
        <div class="field">
        <%= image_tag('facetred.png') %>
          <%= f2.text_field :description, :placeholder => 'Facet 2' %>
        </div>
      <% end %>

      <%= fields_for :facet3 do |f3| %>
        <div class="field">
          <%= image_tag('facetgreen.png') %>
          <%= f3.text_field :description, :placeholder => 'Facet 3' %>
        </div>
      <% end %>
    </div>

    <div class="field">
      <%= f.label :title %>
      <%= f.text_field :title, :placeholder => 'Required: Give Your Prism a Title!'  %>
    </div>
    <div class="field">
      <%= f.label :author %>
      <%= f.text_field :author, :placeholder => 'Required: Original Author'  %>
    </div>
    <div class="field">
      <%= f.label :publication_date %>
      <%= f.text_field :publication_date, :placeholder => 'You Know the Drill...mm/dd/year'  %>
    </div>
    <div class="field">
      <% @language_dump = LanguageList::COMMON_LANGUAGES %>
      <% @languages = [] %>
      <% @language_dump.each do |lang| %>
        <% @languages.push(lang.name) %>
      <% end %>
      <%= f.label :language %>
      <%= f.select :language, options_for_select(@languages, "English") %>
    </div>

    <div class="field">
      <%= f.label :description %>
      <%= f.text_area :description, :rows => 6, :placeholder => 'What do you want people to know about this text or your facet categories?' %>
    </div>
    <div class ="field">
      <%= f.check_box :unlisted%>
      <%= f.label :unlisted %>
      <p>Check this box if you want to share your prism with friends only (you'll need to email the link to friends).</p>
    </div>

    <%= render "cc_license_form" %>

    <div class="actions">
      <p>Wait! Before you submit, read our <%= link_to "Terms of Service", terms_path %>!</p>
      <%= f.submit :class => 'button' %>
    </div>
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.19315931593159316, 'fraction_numerical': 0.00666066606660666, 'mean_word_length': 2.5321042593769865, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 188, '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': '1182248', 'n_tokens_mistral': 2075, 'n_tokens_neox': 1859, 'n_words': 468}