<commit_before><h2>New ticket</h2>

<% form_for(@ticket) do |f| %>
  <%= f.error_messages %>

  <fieldset>
    <legend>Subject</legend>
    <p><%= f.text_field :subject %></p>
  </fieldset>

  <fieldset>
    <legend>About you</legend>
    <p>
      <%= f.label :name, "Your name" %><br />
      <%= f.text_field :name %>
    </p>
    <p>
      <%= f.label :email, "Email address" %><br />
      <%= f.text_field :email %>
    </p>
    <p>
      <%= f.label :domain, "Domain name" %><br />
      <%= f.text_field :domain %>
    </p>
    <p>
      <%= f.label :mobile_number, "Mobile phone" %><br />
      <%= f.text_field :mobile_number %>
    </p>
    <p><%= carrier_select('ticket[carrier_name]', "Please choose your carrier") %></p>
  </fieldset>


  <fieldset>
    <legend>How can we help?</legend>
    <p><%= f.check_box :urgent %> <%= f.label :urgent, 'this is an emergency', :class=>'emergency' %> <span class="tip">(site or email down)</span></p>
    <p>
      <%= f.label :category_id, 'Product or category' %><br />
      
      <%= f.collection_select(:category_id, Category.find(:all), :id, :name, {:include_blank => true},
          {:onchange => remote_function(:update => 'faqs', :url => faqs_by_category_url, :with => "'id='+this.value")}) %>
      
      
    </p>
    <div id="faqs">
      
    </div>
    
  
    <p>
      <%= f.label :body, 'Details of your problem' %>
      <%= f.text_area :body %>
    </p>
  </fieldset>
  
  <fieldset>
    <legend>Details</legend>
    <p class="tip">Details help us diagnose your problem faster. When appropriate, please let us know your operating system, <commit_msg>added a tip about mobile alerts for customers<commit_after><h2>New ticket</h2>

<% form_for(@ticket) do |f| %>
  <%= f.error_messages %>

  <fieldset>
    <legend>Subject</legend>
    <p><%= f.text_field :subject %></p>
  </fieldset>

  <fieldset>
    <legend>About you</legend>
    <p>
      <%= f.label :name, "Your name" %><br />
      <%= f.text_field :name %>
    </p>
    <p>
      <%= f.label :email, "Email address" %><br />
      <%= f.text_field :email %>
    </p>
    <p>
      <%= f.label :domain, "Domain name" %><br />
      <%= f.text_field :domain %>
    </p>
    <p>
      <%= f.label :mobile_number, "Mobile phone" %> <br />
      <%= f.text_field :mobile_number %>
    </p>
    <p>
      <%= carrier_select('ticket[carrier_name]', "Please choose your carrier") %> <br />
      <span class="tip">You'll get a text message when we reply to your ticket</span>
    </p>
  </fieldset>


  <fieldset>
    <legend>How can we help?</legend>
    <p><%= f.check_box :urgent %> <%= f.label :urgent, 'this is an emergency', :class=>'emergency' %> <span class="tip">(site or email down)</span></p>
    <p>
      <%= f.label :category_id, 'Product or category' %><br />
      
      <%= f.collection_select(:category_id, Category.find(:all), :id, :name, {:include_blank => true},
          {:onchange => remote_function(:update => 'faqs', :url => faqs_by_category_url, :with => "'id='+this.value")}) %>
      
      
    </p>
    <div id="faqs">
      
    </div>
    
  
    <p>
      <%= f.label :body, 'Details of your problem' %>
      <%= f.text_area :body %>
    </p>
  </fieldset>
  
  <fieldset>
    <legend>Details</legend>
    <p class="tip">Details help us diagnose your problem faster. When appropriate, please let us know your operating system, 
{'fraction_non_alphanumeric': 0.20306965761511217, 'fraction_numerical': 0.0011806375442739079, 'mean_word_length': 2.6480086114101185, 'pattern_counts': {'":': 0, '<': 132, '<?xml version=': 0, '>': 144, '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': '5976725', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1209, 'n_words': 288}