<commit_before><h2 class='forms-section-title'>Company info</h2>

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

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

  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label 'Company Name' %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_field :name, :maxlength => 40 %>
    </div>
    <div class='span4'>
      <p class='form-input-message'></p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label 'Company Logo' %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <div class="logo-input-wrapper">
        <a href="#" class="btn upload-photo">Choose a logo</a>
        <a href="#" class="btn reset-photo">Reset to default</a>
        <div class="logo-wrapper">
          <%= image_tag(@startup.image_url(:thumb), :class => "startuplogo") %>
        </div>
        <%= f.file_field :image, :class => 'form-photo' %>
      </div>
    </div>
    <div class='span4'>
      <p class='form-input-message'></p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label :pitch %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_field :pitch, :maxlength => 40 %>
    </div>
    <div class='span4'>
      <p class='form-input-message' style='margin-top:3px;'>
        Describe your product in 3-5 words. Consider comparing your product with something that people are already familiar with.
      </p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label :website %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.url_field :website %>
    </div>
    <div class='span4'>
      <p class='form-input-message'></p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label :product %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_area :product, :maxlength => 500, :class => 'textarea-form' %>
    </div>
    <div class='span4'>
      <p class='form-input-message' style='margin-top:12px;'>
        What is the product? What does it help the customer do? Who is the customer?
      </p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label' style='margin: 30px 0;'><%= f.label :markets %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_field :market_list, "data-pre" => @startup.markets.map(&:attributes).to_json, :class => 'markets-input' %>
    </div>
    <div class='span4'>
      <p class='form-input-message' style='margin-top:25px;'>Add up to 4 markets - specifics markets are the best.</p>
    </div>
  </div>
  <div class='form-content-action'>
    <%= f.submit 'Create Startup', :class => 'main-btn blue-btn btn-large' %>
    <%= link_to 'Cancel', startups_path %>

    <% unless @startup.new_record? %>
      <%= link_to 'Delete your startup', @startup, :method => :delete, :confirm => "Are you sure you want to delete #{@startup.name}?", :class => 'action-delete pull-right' %>
    <% end %>
  </div>
<% end %><commit_msg>Update startup form to use a hidden_field for resetting the company logo<commit_after><h2 class='forms-section-title'>Company info</h2>

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

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

  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label 'Company Name' %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_field :name, :maxlength => 40 %>
    </div>
    <div class='span4'>
      <p class='form-input-message'></p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label 'Company Logo' %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <div class="logo-input-wrapper">
        <a href="#" class="btn upload-photo">Choose a logo</a>
        <a href="#" class="btn reset-photo">Reset to default</a>
        <div class="logo-wrapper">
          <%= image_tag(@startup.image_url(:thumb), :class => "startuplogo") %>
          <%= f.hidden_field :default_logo %>
        </div>
        <%= f.file_field :image, :class => 'form-photo' %>
      </div>
    </div>
    <div class='span4'>
      <p class='form-input-message'></p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label :pitch %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_field :pitch, :maxlength => 40 %>
    </div>
    <div class='span4'>
      <p class='form-input-message' style='margin-top:3px;'>
        Describe your product in 3-5 words. Consider comparing your product with something that people are already familiar with.
      </p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label :website %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.url_field :website %>
    </div>
    <div class='span4'>
      <p class='form-input-message'></p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label'><%= f.label :product %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_area :product, :maxlength => 500, :class => 'textarea-form' %>
    </div>
    <div class='span4'>
      <p class='form-input-message' style='margin-top:12px;'>
        What is the product? What does it help the customer do? Who is the customer?
      </p>
    </div>
  </div>
  <div class='form-content'>
    <div class='span3'>
      <h3 class='form-label' style='margin: 30px 0;'><%= f.label :markets %></h3>
    </div>
    <div class='span5' style='margin-top: 10px;'>
      <%= f.text_field :market_list, "data-pre" => @startup.markets.map(&:attributes).to_json, :class => 'markets-input' %>
    </div>
    <div class='span4'>
      <p class='form-input-message' style='margin-top:25px;'>Add up to 4 markets - specifics markets are the best.</p>
    </div>
  </div>
  <div class='form-content-action'>
    <%= f.submit (@startup.id? ? 'Update Startup' : 'Create Startup'), :class => 'main-btn blue-btn btn-large' %>
    <%= link_to 'Cancel', startups_path %>

    <% unless @startup.new_record? %>
      <%= link_to 'Delete your startup', @startup, method: :delete, data: { confirm: "Are you sure you want to delete #{@startup.name}?" }, class: 'action-delete pull-right' %>
    <% end %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20969513869815984, 'fraction_numerical': 0.017577588574567427, 'mean_word_length': 2.9134873723804406, 'pattern_counts': {'":': 0, '<': 240, '<?xml version=': 0, '>': 265, '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': '5265375', 'n_tokens_mistral': 2749, 'n_tokens_neox': 2572, 'n_words': 607}