mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Add new step, second one: payment method
Add payment method form - select the right form depending on the path
This commit is contained in:
9
app/webpacker/controllers/paymentmethod_controller.js
Normal file
9
app/webpacker/controllers/paymentmethod_controller.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Controller } from "stimulus";
|
||||
export default class extends Controller {
|
||||
static targets = ["panel"];
|
||||
|
||||
selectPaymentMethod(event) {
|
||||
this.panelTarget.innerHTML = `<span>${event.target.dataset.paymentmethodDescription}</span>`;
|
||||
this.panelTarget.style.display = "block";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user