<commit_before>#export_options{:style => "display: none; width: 40%"}
  %div{:style => 'background-color: #fff; border: solid 2px; padding: 15px; margin: 3px; border-color: #000'}
    %b Include these repeating aspects in the export:
    %br
    - form_tag(path, :method => :get) do
      -# When the export_options "window" is open we may be looking at a restricted view (in fact, that's all there is in the search screen)
      -# based on an earlier GET.  We need to capture the previous GETs paramaters (which are also in the current GET) and hide them in this
      -# form
      - params.delete(:controller)
      - params.delete(:commit)
      - params.delete(:action)
      - params.each_pair do |key, value|
        - if value.is_a?(Array)
          - value.each do |value_element|
            = hidden_field_tag("#{key}[]", value_element)
        - else
          = hidden_field_tag(key, value)
      %label.horiz
        = check_box_tag("export_options[]", "contacts")
        %span Contacts
      %label.horiz
        = check_box_tag("export_options[]", "places")
        %span Place Exposures
      %label.horiz
        = check_box_tag("export_options[]", "labs")
        %span Lab Results
      %label.horiz
        = check_box_tag("export_options[]", "treatments")
        %span Treatments
      = submit_tag("Export", :id => "export_btn", :class => "vert", :style => "display: block; position: relative; top: 1em; left: 23em;")
    = link_to_function "Close", "Effect.SlideUp('export_options')"
    %br<commit_msg>Fixes tri1033: Export to CSV submit button positioned funny.  Works for IE7, FF2, and FF3<commit_after>#export_options{:style => "display: none; width: 40%; position: relative"}
  %div{:style => 'background-color: #fff; border: solid 2px; padding: 15px; margin: 3px; border-color: #000'}
    %b Include these repeating aspects in the export:
    %br
    - form_tag(path, :method => :get) do
      -# When the export_options "window" is open we may be looking at a restricted view (in fact, that's all there is in the search screen)
      -# based on an earlier GET.  We need to capture the previous GETs paramaters (which are also in the current GET) and hide them in this
      -# form
      - params.delete(:controller)
      - params.delete(:commit)
      - params.delete(:action)
      - params.each_pair do |key, value|
        - if value.is_a?(Array)
          - value.each do |value_element|
            = hidden_field_tag("#{key}[]", value_element)
        - else
          = hidden_field_tag(key, value)
      %label.horiz
        = check_box_tag("export_options[]", "contacts")
        %span Contacts
      %label.horiz
        = check_box_tag("export_options[]", "places")
        %span Place Exposures
      %label.horiz
        = check_box_tag("export_options[]", "labs")
        %span Lab Results
      %label.horiz
        = check_box_tag("export_options[]", "treatments")
        %span Treatments
      -# This div is needed to keep IE from drawing a button as wide as the form.
      %div{:style => "position: absolute; bottom: 1em; right: 1em;"}
        = submit_tag("Export", :id => "export_btn")
    %p.vert
      %br
      = link_to_function "Close", "Effect.SlideUp('export_options')"
{'fraction_non_alphanumeric': 0.12639060568603214, 'fraction_numerical': 0.009270704573547589, 'mean_word_length': 2.8398576512455516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '4769921', 'n_tokens_mistral': 1030, 'n_tokens_neox': 993, 'n_words': 302}