This demo uses the
Air-Datepicker that offers the script and css through a CDN.
If you are not using a cdn the scripts should be loaded somewhere from your website.
The Air datepicker needs 2 scripts (one for the datepicker and one for the localization) and one css file included.
You can include them in your website template, but if you are not to concerned about using css links within your output you can also include them in the miniform template.
When the script is included, it just needs to find an inputfield with the class "datepicker-here" to trigger the script.
To use English as language a field data-language="en" is needed.
More customisation can be found on the Air datepicker documentation website.
Thats all ;-)
Scripts included in this demo:
<link href="https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/css/datepicker.min.css" rel="stylesheet" type="text/css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/datepicker.min.js"></script> <!-- Include English language --> <script src="https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/i18n/datepicker.en.min.js"></script>
If you want to test this demo, just download the template and add it to your miniform templates folder.