.row
  .small-6.columns
    %label #{organization_config.title} membership status
  .small-6.column.js--organization_member_status
    = render "/registrants/organization_membership_badge", organization_membership: organization_membership

.row.js--organization_member_status
  .small-6.columns
    %label #{organization_config.title} Details
  .small-6.columns
    = organization_membership.member_number
    %br
    = organization_membership.system_status
.row
  .small-12.columns
    - if organization_membership.organization_membership_confirmed?
      - button_class = "nonfocus_button"
    - else
      - button_class = "focus_button"
    = link_to "Go to the #{organization_config.title} Membership Site", organization_config.membership_site_url, target: :_blank, class: "#{button_class}"
    = link_to "Recheck #{organization_config.title} Status", refresh_organization_status_registrant_path(organization_membership.registrant.bib_number), remote: true, method: :put, class: "js--organization_member_status_refresh #{button_class}"
    .js--organization_member_refresh_notice.is--hidden
      Checking....page will refresh in 5 seconds.
      %br
      = link_to "Reload Now", "javascript:window.location.reload()", class: "focus_button"

.row
  .small-6.columns
    %label #{organization_config.title} membership status
  .small-6.column.js--organization_member_status
    = render "/registrants/organization_membership_badge", organization_membership: organization_membership

.row.js--organization_member_status
  .small-6.columns
    %label #{organization_config.title} Details
  .small-6.columns
    = organization_membership.member_number
    %br
    = organization_membership.system_status
.row
  .small-12.columns
    - if organization_membership.organization_membership_confirmed?
      - button_class = "nonfocus_button"
    - else
      - button_class = "focus_button"
    - recheck_status_label = "Recheck #{organization_config.title} Status"
    %p
      = link_to "Go to the #{organization_config.title} Membership Site", organization_config.membership_site_url, target: :_blank, class: "#{button_class}"
      Once you register for a membership, return to thise page and #{recheck_status_label}.

    = link_to recheck_status_label, refresh_organization_status_registrant_path(organization_membership.registrant.bib_number), remote: true, method: :put, class: "js--organization_member_status_refresh #{button_class}"
    .js--organization_member_refresh_notice.is--hidden
      Checking....page will refresh in 5 seconds.
      %br
      = link_to "Reload Now", "javascript:window.location.reload()", class: "focus_button"

Clean up instructions on membership site
Clean up instructions on membership site
