<commit_before><%= form_for([:admin,@outlet]) do |f| %>
  <% if @outlet.errors.any? %>
    <div id="error_explanation">
        
      <div class="error"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  <span class="sr-only">Error:</span><%= pluralize(@outlet.errors.count, "error") %> prohibited this social media account from being saved</div>

      <ul class="inlineErrorMsgs">
      <% @outlet.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :service, "Account Type*" %> </br>
    <%= f.select :service, options_for_select(Service.all.map{|item| [item.longname,item.shortname,{"data-format-helper" =>item.service_url_example}]}, selected: @outlet.service),{include_blank: "Select"}, {:class => "form-control formwidth"} %>
  </div>
  <div class="field"> 
    <%= f.label :service_url, "Service URL*" %> Format Help - <span id="format-help">pick an account type for format help</span></br>
    <%= f.text_field :service_url, :class => "form-control formwidth" %>
    <%= f.hidden_field :account %>
  </div>
  <div class="field">
    <%= f.label :organization, "Social Media Account Name" %> </br>
    <%= f.text_field :organization, :class => "form-control formwidth" %>
  </div>
  
  <div class="field">
    <%= f.label :short_description %> </br>
    <%= f.text_field :short_description, :class => "form-control formwidth" %>
  </div>
  <div class="field">
    <%= f.label :long_description %> </br>
    <%= f.text_area :long_description, :class => "form-control formwidth" %>
  </div>
  <div class="field">
    <%= f.label :language, "Language*" %> </br>
    <%= f.select :language, options_for_select([["English","English"],["Spanish","Spanish"]], @outlet.language), {include_blank: "Select"}, {:class => "form-control formwidth"} %>
  </div>
  <div class="field">
    <%= f.label :agency_tokens, "Sponsoring Agencies*" %> </br>
    <%= f.text_field :agency_tokens, {:class => "form-control formwidth", :value => ""} %>
  </div>
  <div class="field">
    <%= f.label :tag_tokens, "Tags" %> </br>
    <%= f.text_field :tag_tokens, {:class => "form-control formwidth", :value => "" }%>
  </div>
  <div class="field">
    <%= f.label :user_tokens, "Contacts*" %> </br>
    <%= f.text_field :user_tokens, {:class => "form-control formwidth", :value => "" }%>
  </div>
  <br/>
  <div class="actions">
    <%= f.submit :class => "btn btn-primary" %>
    <%= link_to 'Back', admin_outlets_path, {:class=>"btn btn-default", role: "button"} %><commit_msg>update english on form for social media<commit_after><%= form_for([:admin,@outlet]) do |f| %>
  <% if @outlet.errors.any? %>
    <div id="error_explanation">
        
      <div class="error"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  <span class="sr-only">Error:</span><%= pluralize(@outlet.errors.count, "error") %> prohibited this social media account from being saved</div>

      <ul class="inlineErrorMsgs">
      <% @outlet.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :service, "Account Type*" %> </br>
    <%= f.select :service, options_for_select(Service.all.map{|item| [item.longname,item.shortname,{"data-format-helper" =>item.service_url_example}]}, selected: @outlet.service),{include_blank: "Select"}, {:class => "form-control formwidth"} %>
  </div>
  <div class="field"> 
    <%= f.label :service_url, "Service URL*" %> Format Help - <span id="format-help">pick an account type for format help</span></br>
    <%= f.text_field :service_url, :class => "form-control formwidth" %>
    <%= f.hidden_field :account %>
  </div>
  <div class="field">
    <%= f.label :organization, "Social Media Account Name (English Descriptive Name)" %> </br>
    <%= f.text_field :organization, :class => "form-control formwidth" %>
  </div>
  
  <div class="field">
    <%= f.label :short_description %> </br>
    <%= f.text_field :short_description, :class => "form-control formwidth" %>
  </div>
  <div class="field">
    <%= f.label :long_description %> </br>
    <%= f.text_area :long_description, :class => "form-control formwidth" %>
  </div>
  <div class="field">
    <%= f.label :language, "Language*" %> </br>
    <%= f.select :language, options_for_select([["English","English"],["Spanish","Spanish"]], @outlet.language), {include_blank: "Select"}, {:class => "form-control formwidth"} %>
  </div>
  <div class="field">
    <%= f.label :agency_tokens, "Sponsoring Agencies*" %> </br>
    <%= f.text_field :agency_tokens, {:class => "form-control formwidth", :value => ""} %>
  </div>
  <div class="field">
    <%= f.label :tag_tokens, "Tags" %> </br>
    <%= f.text_field :tag_tokens, {:class => "form-control formwidth", :value => "" }%>
  </div>
  <div class="field">
    <%= f.label :user_tokens, "Contacts*" %> </br>
    <%= f.text_field :user_tokens, {:class => "form-control formwidth", :value => "" }%>
  </div>
  <br/>
  <div class="actions">
    <%= f.submit :class => "btn btn-primary" %>
    <%= link_to 'Back', admin_outlets_path, {:class=>"btn btn-default", role: "button"} %>
{'fraction_non_alphanumeric': 0.21989727981738635, 'fraction_numerical': 0.0, 'mean_word_length': 3.951035781544256, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 175, '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': '4728795', 'n_tokens_mistral': 1929, 'n_tokens_neox': 1779, 'n_words': 385}