From a451449766d581978068a5b8f8c1e27f50386ea7 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 23 Sep 2021 08:33:36 +0000 Subject: Revert "composer update bootstrap to version 5.1.1" This reverts commit 89e4006b2d84d398e34d407a019854823b1dd37d. --- .../docs/5.0/examples/checkout/form-validation.css | 3 + .../docs/5.0/examples/checkout/form-validation.js | 20 ++ .../content/docs/5.0/examples/checkout/index.html | 232 +++++++++++++++++++++ 3 files changed, 255 insertions(+) create mode 100644 vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.css create mode 100644 vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.js create mode 100644 vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/index.html (limited to 'vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout') diff --git a/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.css b/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.css new file mode 100644 index 000000000..e5ea31c40 --- /dev/null +++ b/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.css @@ -0,0 +1,3 @@ +.container { + max-width: 960px; +} diff --git a/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.js b/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.js new file mode 100644 index 000000000..f8fd583de --- /dev/null +++ b/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/form-validation.js @@ -0,0 +1,20 @@ +// Example starter JavaScript for disabling form submissions if there are invalid fields +(function () { + 'use strict' + + // Fetch all the forms we want to apply custom Bootstrap validation styles to + var forms = document.querySelectorAll('.needs-validation') + + // Loop over them and prevent submission + Array.prototype.slice.call(forms) + .forEach(function (form) { + form.addEventListener('submit', function (event) { + if (!form.checkValidity()) { + event.preventDefault() + event.stopPropagation() + } + + form.classList.add('was-validated') + }, false) + }) +})() diff --git a/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/index.html b/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/index.html new file mode 100644 index 000000000..4809dc4bb --- /dev/null +++ b/vendor/twbs/bootstrap/site/content/docs/5.0/examples/checkout/index.html @@ -0,0 +1,232 @@ +--- +layout: examples +title: Checkout example +extra_css: + - "form-validation.css" +extra_js: + - src: "form-validation.js" +body_class: "bg-light" +--- + +
+
+
+ +

Checkout form

+

Below is an example form built entirely with Bootstrap’s form controls. Each required form group has a validation state that can be triggered by attempting to submit the form without completing it.

+
+ +
+
+

+ Your cart + 3 +

+
    +
  • +
    +
    Product name
    + Brief description +
    + $12 +
  • +
  • +
    +
    Second product
    + Brief description +
    + $8 +
  • +
  • +
    +
    Third item
    + Brief description +
    + $5 +
  • +
  • +
    +
    Promo code
    + EXAMPLECODE +
    + −$5 +
  • +
  • + Total (USD) + $20 +
  • +
+ +
+
+ + +
+
+
+
+

Billing address

+
+
+
+ + +
+ Valid first name is required. +
+
+ +
+ + +
+ Valid last name is required. +
+
+ +
+ +
+ @ + +
+ Your username is required. +
+
+
+ +
+ + +
+ Please enter a valid email address for shipping updates. +
+
+ +
+ + +
+ Please enter your shipping address. +
+
+ +
+ + +
+ +
+ + +
+ Please select a valid country. +
+
+ +
+ + +
+ Please provide a valid state. +
+
+ +
+ + +
+ Zip code required. +
+
+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +

Payment

+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + Full name as displayed on card +
+ Name on card is required +
+
+ +
+ + +
+ Credit card number is required +
+
+ +
+ + +
+ Expiration date required +
+
+ +
+ + +
+ Security code required +
+
+
+ +
+ + +
+
+
+
+ + +
-- cgit v1.2.3