Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(form-grid): resolve error where Payment Method shows with only one gateway enabled. #3293

Closed
1 task
Benunc opened this issue May 30, 2018 · 0 comments
Closed
1 task
Assignees

Comments

@Benunc
Copy link
Member

Benunc commented May 30, 2018

User Story

As a give admin, I want to hide the select payment method fieldset when there is only one gateway enabled so that donors don't have to see it.

The Form Grid Shortcode is forcing the Select Payment Method fieldset on forms, even when only one is active.

Current Behavior

I currently can't hide that section on form grids.

Possible Solution

There's a display:block!important that is targeting that fieldset:

.give-donation-grid-item-form #give-payment-mode-select,.give-donation-grid-item-form #give_purchase_form_wrap {
    display: block!important
}

That needs to be removed in the case of only one gateway active.

Steps to Reproduce

  1. Create a form grid using the shortcode, to display in modal
  2. Only enable one payment gateway
  3. Check the form, and the payment gateway options still show.

Related

Tasks

  • resolve the fieldset showing for only one gateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants