<commit_before>- content_for :head_content do
  = stylesheet_link_tag 'chosen'
  = javascript_include_tag 'chosen.jquery.min'
  = javascript_tag "$(function() { $('#product_add').chosen(); });"

- content_for(:h1) { t '.head.h1', :order_number => @order.id }
= render :partial => 'shared/order_details_table'

- if @merge_orders.blank?
  = form_for @order, :url => facility_order_path(current_facility, @order) do
    = text_field_tag :product_add_quantity, 0
    = select_tag :product_add, options_for_select(current_facility.products.active_plus_hidden.collect{|p| [ p.name, p.id ]})
    %br
    = submit_tag 'Add To Order', :class => 'btn', :id => :product_add_btn
- else
  %div#merge-orders
    %p= t 'facility_orders.edit.attention'
    %table
      %tr
        %th
        %th= t('orders.show.th.product')<commit_msg>Task #48377 : Add ability to attach new orders to old existing orders; default quantity to 1<commit_after>- content_for :head_content do
  = stylesheet_link_tag 'chosen'
  = javascript_include_tag 'chosen.jquery.min'
  = javascript_tag "$(function() { $('#product_add').chosen(); });"

- content_for(:h1) { t '.head.h1', :order_number => @order.id }
= render :partial => 'shared/order_details_table'

- if @merge_orders.blank?
  = form_for @order, :url => facility_order_path(current_facility, @order) do
    = text_field_tag :product_add_quantity, 1
    = select_tag :product_add, options_for_select(current_facility.products.active_plus_hidden.collect{|p| [ p.name, p.id ]})
    %br
    = submit_tag 'Add To Order', :class => 'btn', :id => :product_add_btn
- else
  %div#merge-orders
    %p= t 'facility_orders.edit.attention'
    %table
      %tr
        %th
        %th= t('orders.show.th.product')
{'fraction_non_alphanumeric': 0.15014492753623188, 'fraction_numerical': 0.006956521739130435, 'mean_word_length': 4.246200607902735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2752272', 'n_tokens_mistral': 624, 'n_tokens_neox': 599, 'n_words': 122}