<commit_before><%= form_for order_search, url: admin_orders_path, html: {class: "form-horizontal", role: "form", method: :get} do |f| %>

  <!--TODO Can we have an indicator or message next to the list that shows when an address does not have a pxid -->
  <div class="form-group">
    <label class="col-xs-1">Name</label>
    <div class="col-xs-2">
      <%= f.label :first_name, class: "sr-only" %>
      <%= f.text_field :first_name, class: "form-control", placeholder: "<NAME>" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :last_name, class: "sr-only" %>
      <%= f.text_field :last_name, class: "form-control", placeholder: "<NAME>" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Customer ID</label>
    <div class="col-xs-2">
      <%= f.label :customer_id, class: "sr-only" %>
      <%= f.text_field :customer_id, class: "form-control" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Contact info</label>
    <div class="col-xs-2">
      <%= f.label :email, class: "sr-only" %>
      <%= f.text_field :email, class: "form-control", placeholder: "Email address" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :phone, "Phone", class: "sr-only" %>
      <%= f.text_field :phone, class: "form-control", placeholder: "Phone number" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Address</label>
    <div class="col-xs-2">
      <%= f.label :address, class: "sr-only" %>
      <%= f.text_field :address, class: "form-control", placeholder: "Street address" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :suburb, class: "sr-only" %>
      <%= f.text_field :suburb, class: "form-control", placeholder: "Suburb" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :city_town, "City/Town", class: "sr-only" %>
      <%= f.text_field :city_town, class: "form-control", placeholder: "City/Town" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Created Date</label>
    <div class="col-xs-1">
      <%= f.label :created_at_from, class: "sr-only" %>
      <%= f.text_field :created_at_from, class: "form-control datepicker", placeholder: "From" %>
    </div>
    <div class="col-xs-1">
      <%= f.label :created_at_to, class: "sr-only" %>
      <%= f.text_field :created_at_to, class: "form-control datepicker", placeholder: "To" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Shipped Date</label>
    <div class="col-xs-1">
      <%= f.label :shipped_at_from, class: "sr-only" %>
      <%= f.text_field :shipped_at_from, class: "form-control datepicker", placeholder: "From" %>
    </div>
    <div class="col-xs-1">
      <%= f.label :shipped_at_to, class: "sr-only" %>
      <%= f.text_field :shipped_at_to, class: "form-control datepicker", placeholder: "To" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Order info</label>
    <div class="col-xs-1">
      <%= f.label :id, "ID" %>
      <%= f.text_field :id, class: "form-control" %>
    </div>

    <div class="col-xs-1">
      <%= f.label :shipped, "Shipped?" %>
      <%= f.select :shipped, order_search.yes_no_options, {include_blank: true}, {class: "form-control"} %>
    </div>

    <div class="col-xs-2">
      <%= f.label :further_contact_requested, "Further Contact?" %>
      <%= f.select :further_contact_requested, order_search.further_contact_options, {include_blank: true}, {class: "form-control"} %>
    </div>

    <div class="col-xs-3">
      <%= f.label :item_ids, "Items" %>
      <%= f.select :item_ids, order_search.item_ids_options, {}, {class: "form-control", multiple: :multiple} %>
    </div>
  </div>

  <div class="form-group">
    <%= f.submit "Search", class: "btn btn-default" %>
    <%= f.button "Export to CSV", name: 'format', value: 'csv', class: "btn btn-default" %>
    <%= link_to "Reset", admin_orders_path, class: "btn btn-default" %>
  </div>
<% end %>
<commit_msg>Add Creator email field to order search form<commit_after><%= form_for order_search, url: admin_orders_path, html: {class: "form-horizontal", role: "form", method: :get} do |f| %>

  <!--TODO Can we have an indicator or message next to the list that shows when an address does not have a pxid -->
  <div class="form-group">
    <label class="col-xs-1">Name</label>
    <div class="col-xs-2">
      <%= f.label :first_name, class: "sr-only" %>
      <%= f.text_field :first_name, class: "form-control", placeholder: "<NAME>" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :last_name, class: "sr-only" %>
      <%= f.text_field :last_name, class: "form-control", placeholder: "Last name" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Customer ID</label>
    <div class="col-xs-2">
      <%= f.label :customer_id, class: "sr-only" %>
      <%= f.text_field :customer_id, class: "form-control" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Contact info</label>
    <div class="col-xs-2">
      <%= f.label :email, class: "sr-only" %>
      <%= f.text_field :email, class: "form-control", placeholder: "Email address" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :phone, "Phone", class: "sr-only" %>
      <%= f.text_field :phone, class: "form-control", placeholder: "Phone number" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Address</label>
    <div class="col-xs-2">
      <%= f.label :address, class: "sr-only" %>
      <%= f.text_field :address, class: "form-control", placeholder: "Street address" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :suburb, class: "sr-only" %>
      <%= f.text_field :suburb, class: "form-control", placeholder: "Suburb" %>
    </div>
    <div class="col-xs-2">
      <%= f.label :city_town, "City/Town", class: "sr-only" %>
      <%= f.text_field :city_town, class: "form-control", placeholder: "City/Town" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Creator Email</label>
    <div class="col-xs-4">
      <%= f.label :creator_email, class: "sr-only" %>
      <%= f.text_field :creator_email, class: "form-control"  %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Created Date</label>
    <div class="col-xs-1">
      <%= f.label :created_at_from, class: "sr-only" %>
      <%= f.text_field :created_at_from, class: "form-control datepicker", placeholder: "From" %>
    </div>
    <div class="col-xs-1">
      <%= f.label :created_at_to, class: "sr-only" %>
      <%= f.text_field :created_at_to, class: "form-control datepicker", placeholder: "To" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Shipped Date</label>
    <div class="col-xs-1">
      <%= f.label :shipped_at_from, class: "sr-only" %>
      <%= f.text_field :shipped_at_from, class: "form-control datepicker", placeholder: "From" %>
    </div>
    <div class="col-xs-1">
      <%= f.label :shipped_at_to, class: "sr-only" %>
      <%= f.text_field :shipped_at_to, class: "form-control datepicker", placeholder: "To" %>
    </div>
  </div>

  <div class="form-group">
    <label class="col-xs-1">Order info</label>
    <div class="col-xs-1">
      <%= f.label :id, "ID" %>
      <%= f.text_field :id, class: "form-control" %>
    </div>

    <div class="col-xs-1">
      <%= f.label :shipped, "Shipped?" %>
      <%= f.select :shipped, order_search.yes_no_options, {include_blank: true}, {class: "form-control"} %>
    </div>

    <div class="col-xs-2">
      <%= f.label :further_contact_requested, "Further Contact?" %>
      <%= f.select :further_contact_requested, order_search.further_contact_options, {include_blank: true}, {class: "form-control"} %>
    </div>

    <div class="col-xs-3">
      <%= f.label :item_ids, "Items" %>
      <%= f.select :item_ids, order_search.item_ids_options, {}, {class: "form-control", multiple: :multiple} %>
    </div>
  </div>

  <div class="form-group">
    <%= f.submit "Search", class: "btn btn-default" %>
    <%= f.button "Export to CSV", name: 'format', value: 'csv', class: "btn btn-default" %>
    <%= link_to "Reset", admin_orders_path, class: "btn btn-default" %>
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.21136143410852712, 'fraction_numerical': 0.005813953488372093, 'mean_word_length': 3.1659939455095865, 'pattern_counts': {'":': 0, '<': 214, '<?xml version=': 0, '>': 214, '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': '3615938', 'n_tokens_mistral': 3210, 'n_tokens_neox': 3016, 'n_words': 655}