<commit_before>.panel.panel-info
  .panel-heading
    = link_to 'Types & Subtypes', '#type-subtype-panel', :role => 'button', :data => {:toggle => 'collapse'}, :aria => {:expanded => true}

  .panel-body#type-subtype-panel.collapse.in
    #types
      .row
        .col-md-3
          %fieldset
            %legend.panel-legend Select Asset Type(s)
            #type-selector
              = f.input :asset_type_id, :collection => AssetType.active.map { |type| [type.name, type.id, :class => type.class_name] },  input_html: { multiple: true }, :label => "Type"
            .general-fields
              = f.input :keyword, :placeholder => "Enter A Query Term"
        .col-md-3.general-fields#subtype-selector
          %fieldset
            %legend.panel-legend Subtypes
            = f.input :asset_subtype_id, collection: AssetType.active, as: :grouped_select, group_method: :asset_subtypes, input_html: { multiple: true }, :label => "Asset Subtype"
        .col-md-3.general-fields
          %fieldset
            %legend.panel-legend Status
            = f.input :asset_scope, collection: ["Disposed", "Operational"], :label => "Operational Status"

#general.general-fields.panel.panel-info
  .panel-heading
    = link_to 'Common Fields', '#common-panel', :role => 'button', :data => {:toggle => 'collapse'}, :aria => {:expanded => true}

  .panel-body#common-panel.collapse
    .row.row-eq
      .col-md-3
        %fieldset
          %legend.panel-legend Vendor & Manufacturer Information
          #vendor-selector
            = f.input :vendor_id, collection: Vendor.active.where(organization_id: @organization_list).map { |vendor| [vendor.name, vendor.id, { class: vendor.organization_id } ]}, label: 'Vendor', input_html: { multiple: true }
          #manufacturers
            = f.input :manufacturer_id, collection: Manufacturer.active.map { |manufacturer| [ " #{ manufacturer.to_s } (#{ manufacturer.filter.titleize.pluralize })", manufacturer.id, { class: manufacturer.filter }] }, input_html: { multiple: true }
          = f.input :manufacturer_model, :placeholder => "Enter The Manufacturer Model", :label => "Manufacturer Model"
          = f.input :manufacture_year, :wrapper => :vertical_prepend, :label => "Manufacture Year" do
            .input-group-btn
              %button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button"}
              %ul.dropdown-menu{:role => "menu"}
                %li
                  %a{:data => {:compare => "-1"}} Before
                %li
                  %a{:data => {:compare => "0"}} During
                %li
                  %a{:data => {:compare => "1"}} After
              = f.input_field :manufacture_year_comparator, :as => :hidden, :value => '0'
            = f.input_field :manufacture_year, :class => "form-control"

      .col-md-3
        %fieldset
          %legend.panel-legend Funding, Value
          = f.input :fta_funding_type_id, :label => "Fta Funding Type", :collection => FtaFundingType.active, :label_method => :to_s, input_html: { multiple: true }
          = f.input :sourceable_id, :label => GrantPurchase.label, :collection => GrantPurchase.sources, input_html: { multiple: true }
          = f.input :purchase_cost, :label => "Purchase Cost", :wrapper => :vertical_prepend do
            .input-group-btn
              %button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button"}
              %ul.dropdown-menu{:role => "menu"}
                %li
                  %a{:data => {:compare => "-1"}} Less Than
                %li
                  %a{:data => {:compare => "0"}} Equal To
                %li
                  %a{:data => {:compare => "1"}} Greater Than
              = f.input_field :purchase_cost_comparator, :as => :hidden, :value => '0'
            = f.input_field :purchase_cost, :class => "form-control", :as => :integer, :label => "Original Purchase Cost", input_html: { :min => '0'}
          = f.input :book_value, :label => "Book Value", :wrapper => :vertical_prepend do<commit_msg>labels asset query page TTPLAT-64<commit_after>.panel.panel-info
  .panel-heading
    = link_to 'Types & Subtypes', '#type-subtype-panel', :role => 'button', :data => {:toggle => 'collapse'}, :aria => {:expanded => true}

  .panel-body#type-subtype-panel.collapse.in
    #types
      .row
        .col-md-3
          %fieldset
            %legend.panel-legend Select Asset Type(s)
            #type-selector
              = f.input :asset_type_id, :collection => AssetType.active.map { |type| [type.name, type.id, :class => type.class_name] },  input_html: { multiple: true }, :label => "Type"
            .general-fields
              = f.input :keyword, :placeholder => "Enter A Query Term"
        .col-md-3.general-fields#subtype-selector
          %fieldset
            %legend.panel-legend Subtypes
            = f.input :asset_subtype_id, collection: AssetType.active, as: :grouped_select, group_method: :asset_subtypes, input_html: { multiple: true }, :label => "Asset Subtype"
        .col-md-3.general-fields
          %fieldset
            %legend.panel-legend Status
            = f.input :asset_scope, collection: ["Disposed", "Operational"], :label => "Operational Status"

#general.general-fields.panel.panel-info
  .panel-heading
    = link_to 'Common Fields', '#common-panel', :role => 'button', :data => {:toggle => 'collapse'}, :aria => {:expanded => true}

  .panel-body#common-panel.collapse
    .row.row-eq
      .col-md-3
        %fieldset
          %legend.panel-legend Vendor & Manufacturer Information
          #vendor-selector
            = f.input :vendor_id, collection: Vendor.active.where(organization_id: @organization_list).map { |vendor| [vendor.name, vendor.id, { class: vendor.organization_id } ]}, label: 'Vendor', input_html: { multiple: true }
          #manufacturers
            = f.input :manufacturer_id, collection: Manufacturer.active.map { |manufacturer| [ " #{ manufacturer.to_s } (#{ manufacturer.filter.titleize.pluralize })", manufacturer.id, { class: manufacturer.filter }] }, input_html: { multiple: true }
          = f.input :manufacturer_model, :placeholder => "Enter The Manufacturer Model", :label => "Manufacturer Model"
          = f.input :manufacture_year, :wrapper => :vertical_prepend, :label => "Manufacture Year" do
            .input-group-btn
              %button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button"}
              %ul.dropdown-menu{:role => "menu"}
                %li
                  %a{:data => {:compare => "-1"}} Before
                %li
                  %a{:data => {:compare => "0"}} During
                %li
                  %a{:data => {:compare => "1"}} After
              = f.input_field :manufacture_year_comparator, :as => :hidden, :value => '0'
            = f.input_field :manufacture_year, :class => "form-control"

      .col-md-3
        %fieldset
          %legend.panel-legend Funding, Value
          = f.input :fta_funding_type_id, :label => "FTA Funding Type", :collection => FtaFundingType.active, :label_method => :to_s, input_html: { multiple: true }
          = f.input :sourceable_id, :label => GrantPurchase.label, :collection => GrantPurchase.sources, input_html: { multiple: true }
          = f.input :purchase_cost, :label => "Purchase Cost", :wrapper => :vertical_prepend do
            .input-group-btn
              %button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button"}
              %ul.dropdown-menu{:role => "menu"}
                %li
                  %a{:data => {:compare => "-1"}} Less Than
                %li
                  %a{:data => {:compare => "0"}} Equal To
                %li
                  %a{:data => {:compare => "1"}} Greater Than
              = f.input_field :purchase_cost_comparator, :as => :hidden, :value => '0'
            = f.input_field :purchase_cost, :class => "form-control", :as => :integer, :label => "Original Purchase Cost", input_html: { :min => '0'}
          = f.input :book_value, :label => "Book Value", :wrapper => :vertical_prepend do
{'fraction_non_alphanumeric': 0.1560501721593704, 'fraction_numerical': 0.0036891293654697493, 'mean_word_length': 2.4201009251471826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 115, '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': '414866', 'n_tokens_mistral': 2517, 'n_tokens_neox': 2401, 'n_words': 533}