Add new step, second one: payment method

Add payment method form

- select the right form depending on the path
This commit is contained in:
Jean-Baptiste Bellet
2021-07-01 15:03:18 +02:00
parent 9b29997498
commit 57d7191332
4 changed files with 41 additions and 2 deletions

View 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";
}
}