<commit_before><%= render :partial => 'admin/shared/product_sub_menu' %>

<%= error_messages_for :product %>


<% form_for(:product,  :url => collection_url, :html => { :multipart => true }) do |f| %>
<fieldset>

  <% f.field_container :name do %>
    <%= f.label :name, t("name") %> <span class="required">*</span><br />
    <%= f.text_field :name, :class => 'fullwidth title'  %>
    <%= f.error_message_on :name %>
  <% end %>

  <div class="yui-gb">
    <div class="yui-u first">
    
      <% if @product.variant %>
      <% f.field_container :sku do %>
        <%= f.label :sku, t("sku") %><span class="required">*</span><br />
        <%= f.text_field :sku, :size => 16 %>
        <%= f.error_message_on :sku %>
      <% end %>
      <% end %>
      
      <p>
        <%= f.label :prototype_id, t("prototype") %><br />
        <%= f.collection_select :prototype_id, Prototype.all, :id, :name, :include_blank => true %>
      </p>
    
    </div>
    <div class="yui-u">
        
      <% f.field_container :master_price do %><commit_msg>remove required asterisk from sku field on product new form (cherry picked from commit 6<PASSWORD>9<PASSWORD>ff<PASSWORD>7bec<PASSWORD>cb<PASSWORD>)<commit_after><%= render :partial => 'admin/shared/product_sub_menu' %>

<%= error_messages_for :product %>


<% form_for(:product,  :url => collection_url, :html => { :multipart => true }) do |f| %>
<fieldset>

  <% f.field_container :name do %>
    <%= f.label :name, t("name") %> <span class="required">*</span><br />
    <%= f.text_field :name, :class => 'fullwidth title'  %>
    <%= f.error_message_on :name %>
  <% end %>

  <div class="yui-gb">
    <div class="yui-u first">
    
      <% if @product.variant %>
      <% f.field_container :sku do %>
        <%= f.label :sku, t("sku") %><br />
        <%= f.text_field :sku, :size => 16 %>
        <%= f.error_message_on :sku %>
      <% end %>
      <% end %>
      
      <p>
        <%= f.label :prototype_id, t("prototype") %><br />
        <%= f.collection_select :prototype_id, Prototype.all, :id, :name, :include_blank => true %>
      </p>
    
    </div>
    <div class="yui-u">
        
      <% f.field_container :master_price do %>
{'fraction_non_alphanumeric': 0.20647219690063812, 'fraction_numerical': 0.0031905195989061076, 'mean_word_length': 2.7393526405451447, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 0, '>': 84, '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': '4025081', 'n_tokens_mistral': 855, 'n_tokens_neox': 778, 'n_words': 159}