<commit_before>%section#header_toolbar.container-fluid
  .container
    #breadcrumbs
      %ul
        %li= link_to "Home", "/"
        %li= link_to "Memberships", member_program_path
        %li
          %span Confirm your purchase

%section.container#main_content
  #page_header
    #page.title_left
      %h1 Membership purchase

  %p.secure_transaction
    = image_tag 'application/orders/lock.png'
    This is a secure transaction
  #membership_purchase.box.double.left
    #membership_form_section.column_row
      = semantic_form_for(@order, url: '/payment', method: :post, :remote => true) do |f|
        .form_section
          %span.form_section_header Contribution Amount
          %hr.form_section_separator
          .form_errors
            %ul
              - @order.errors[:base].each do |error|
                %li.form_error
                  = error

          = f.inputs :class => "v_lists c_list" do
            = f.input :amount, opts_for_amount(@order)

        .form_section
          %span.form_section_header Billing Information
          %hr.form_section_separator
          = f.inputs :class => "v_lists c_list" do
            = f.input :member_type_id,  :as => :hidden, :value => @order.member_type.id
            = f.input :name_on_card,    :as => :string, :required => true, :placeholder => '<NAME>'
            - opts = { :as => :string, :required => true }
            - opts.merge!({ :input_html => { :value => "370000000000002" } }) if Rails.env == 'development'
            = f.input :card_number, opts
            = f.inputs :class => 'form_expdate_cvc' do
              = f.input :expiry_date,   :as => :string, :required => true, :label => 'Exp Date', :placeholder => 'MMYY'
              = f.input :cvc,           :as => :string, :required => true, :label => "CVC"
            = f.inputs :class => 'form_state_cards' do
              %li.form_cards
                %ul
                  %li= image_tag 'application/orders/billing_card1.png'
                  %li= image_tag 'application/orders/billing_card2.png'
                  %li= image_tag 'application/orders/billing_card3.png'
                  %li= image_tag 'application/orders/billing_card4.png'

            %ol
              = f.semantic_fields_for :billing_address do |billing_address|
                = billing_address.input :street_1, :as => :string, :required => true
                = billing_address.input :street_2, :as => :string
                = billing_address.input :city,     :as => :string, :required => true
                = billing_address.input :state,    :as => :select, :required => true, :collection => Carmen::states[0..-12], :input_html => { style: "width: 214px; margin-top: 8px;" }
                = billing_address.input :country,  :as => :hidden, :value => 'US'
                = billing_address.input :zip,      :as => :string, :required => true, :label => "Zip Code"
                = billing_address.input :phone,    :as => :string, :required => true, :label => "Phone Number"

          .form_section#personal
            %span.form_section_header Personal Information
            %hr.form_section_separator
            %fieldset.v_lists.c_lists
              %ol
                = f.semantic_fields_for :user do |u|
                  = u.input :email, :as => :string, :required => true

                = f.semantic_fields_for @member do |m|
                  = m.input :first_name, :as => :string, :required => true
                  = m.input :last_name,  :as => :string, :required => true

                = f.semantic_fields_for @address do |ad|
                  = ad.input :street_1, :as => :string, :required => true
                  = ad.input :street_2, :as => :string
                  = ad.input :city,     :as => :string, :required => true
                  = ad.input :state,    :as => :select, :required => true, :collection => Carmen::states[0..-12], :input_html => { style: "width: 214px; margin-top: 8px;" }
                  = ad.input :country,  :as => :hidden, :value => 'US'
                  = ad.input :zip,      :as => :string, :required => true, :label => "Zip Code"
                  = ad.input :phone,    :as => :string, :required => true, :label => "Phone Number"



        = f.actions do
          = f.submit :value => "Confirm Purchase", :class => "btn submit", :id => "confirm_purchase", :data => { :disable_with => "Please Wait..." }

    #membership_summary_section.colum_row
      %p.summary_header
        Summary &amp; Support
      = render 'member_type_summary', :member_type => @order.member_type
      = render 'need_help'
      = render 'share_ciw'
      = render 'volunteering'

= render :partial => 'shared/thank_you_modal',
         :locals  => { :message    => 'Thank you for signing up to our Membership Program! You will be receiving a confirmation email and a receipt sent to the email you supplied momentarily.',
                       :submessage => 'Inspire others by sharing Chicago Ideas Week',
                       :share_url  => membership_url }<commit_msg>Show the survey modal please<commit_after>%section#header_toolbar.container-fluid
  .container
    #breadcrumbs
      %ul
        %li= link_to "Home", "/"
        %li= link_to "Memberships", member_program_path
        %li
          %span Confirm your purchase

%section.container#main_content
  #page_header
    #page.title_left
      %h1 Membership purchase

  %p.secure_transaction
    = image_tag 'application/orders/lock.png'
    This is a secure transaction
  #membership_purchase.box.double.left
    #membership_form_section.column_row
      = semantic_form_for(@order, url: '/payment', method: :post, :remote => true) do |f|
        .form_section
          %span.form_section_header Contribution Amount
          %hr.form_section_separator
          .form_errors
            %ul
              - @order.errors[:base].each do |error|
                %li.form_error
                  = error

          = f.inputs :class => "v_lists c_list" do
            = f.input :amount, opts_for_amount(@order)

        .form_section
          %span.form_section_header Billing Information
          %hr.form_section_separator
          = f.inputs :class => "v_lists c_list" do
            = f.input :member_type_id,  :as => :hidden, :value => @order.member_type.id
            = f.input :name_on_card,    :as => :string, :required => true, :placeholder => '<NAME>'
            - opts = { :as => :string, :required => true }
            - opts.merge!({ :input_html => { :value => "370000000000002" } }) if Rails.env == 'development'
            = f.input :card_number, opts
            = f.inputs :class => 'form_expdate_cvc' do
              = f.input :expiry_date,   :as => :string, :required => true, :label => 'Exp Date', :placeholder => 'MMYY'
              = f.input :cvc,           :as => :string, :required => true, :label => "CVC"
            = f.inputs :class => 'form_state_cards' do
              %li.form_cards
                %ul
                  %li= image_tag 'application/orders/billing_card1.png'
                  %li= image_tag 'application/orders/billing_card2.png'
                  %li= image_tag 'application/orders/billing_card3.png'
                  %li= image_tag 'application/orders/billing_card4.png'

            %ol
              = f.semantic_fields_for :billing_address do |billing_address|
                = billing_address.input :street_1, :as => :string, :required => true
                = billing_address.input :street_2, :as => :string
                = billing_address.input :city,     :as => :string, :required => true
                = billing_address.input :state,    :as => :select, :required => true, :collection => Carmen::states[0..-12], :input_html => { style: "width: 214px; margin-top: 8px;" }
                = billing_address.input :country,  :as => :hidden, :value => 'US'
                = billing_address.input :zip,      :as => :string, :required => true, :label => "Zip Code"
                = billing_address.input :phone,    :as => :string, :required => true, :label => "Phone Number"

          .form_section#personal
            %span.form_section_header Personal Information
            %hr.form_section_separator
            %fieldset.v_lists.c_lists
              %ol
                = f.semantic_fields_for :user do |u|
                  = u.input :email, :as => :string, :required => true

                = f.semantic_fields_for @member do |m|
                  = m.input :first_name, :as => :string, :required => true
                  = m.input :last_name,  :as => :string, :required => true

                = f.semantic_fields_for @address do |ad|
                  = ad.input :street_1, :as => :string, :required => true
                  = ad.input :street_2, :as => :string
                  = ad.input :city,     :as => :string, :required => true
                  = ad.input :state,    :as => :select, :required => true, :collection => Carmen::states[0..-12], :input_html => { style: "width: 214px; margin-top: 8px;" }
                  = ad.input :country,  :as => :hidden, :value => 'US'
                  = ad.input :zip,      :as => :string, :required => true, :label => "Zip Code"
                  = ad.input :phone,    :as => :string, :required => true, :label => "Phone Number"



        = f.actions do
          = f.submit :value => "Confirm Purchase", :class => "btn submit", :id => "confirm_purchase", :data => { :disable_with => "Please Wait..." }

    #membership_summary_section.colum_row
      %p.summary_header
        Summary &amp; Support
      = render 'member_type_summary', :member_type => @order.member_type
      = render 'need_help'
      = render 'share_ciw'
      = render 'volunteering'

= render :partial => 'shared/thank_you_modal',
         :locals  => { :message    => 'Thank you for signing up to our Membership Program! You will be receiving a confirmation email and a receipt sent to the email you supplied momentarily.',
                       :submessage => 'Inspire others by sharing Chicago Ideas Week',
                       :share_url  => membership_url }
= render :partial => 'shared/demographic_info_modal'
{'fraction_non_alphanumeric': 0.13104600865119936, 'fraction_numerical': 0.007471490365709791, 'mean_word_length': 2.0687782805429866, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 150, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3371927', 'n_tokens_mistral': 3123, 'n_tokens_neox': 2952, 'n_words': 731}