From ad0b0364b81c04423e02edd596ebbb5b9b748624 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 15 Feb 2021 18:42:21 +0000 Subject: missing files --- .../docs/4.6/examples/checkout/form-validation.css | 5 + .../docs/4.6/examples/checkout/form-validation.js | 21 ++ .../content/docs/4.6/examples/checkout/index.html | 225 +++++++++++++++++++++ 3 files changed, 251 insertions(+) create mode 100644 vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.css create mode 100644 vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.js create mode 100644 vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/index.html (limited to 'vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout') diff --git a/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.css b/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.css new file mode 100644 index 000000000..7a6246fae --- /dev/null +++ b/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.css @@ -0,0 +1,5 @@ +.container { + max-width: 960px; +} + +.lh-condensed { line-height: 1.25; } diff --git a/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.js b/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.js new file mode 100644 index 000000000..59291c8b3 --- /dev/null +++ b/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/form-validation.js @@ -0,0 +1,21 @@ +// Example starter JavaScript for disabling form submissions if there are invalid fields +(function () { + 'use strict' + + window.addEventListener('load', function () { + // Fetch all the forms we want to apply custom Bootstrap validation styles to + var forms = document.getElementsByClassName('needs-validation') + + // Loop over them and prevent submission + Array.prototype.filter.call(forms, function (form) { + form.addEventListener('submit', function (event) { + if (form.checkValidity() === false) { + event.preventDefault() + event.stopPropagation() + } + + form.classList.add('was-validated') + }, false) + }) + }, false) +})() diff --git a/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/index.html b/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/index.html new file mode 100644 index 000000000..353111883 --- /dev/null +++ b/vendor/twbs/bootstrap/site/content/docs/4.6/examples/checkout/index.html @@ -0,0 +1,225 @@ +--- +layout: examples +title: Checkout example +extra_css: + - "form-validation.css" +extra_js: + - "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