Sha256: 91fa6ba8f5c8eb2ad4eaf61c0fd594a1a7845b52f0b236fd9db552dc13510222
Contents?: true
Size: 1004 Bytes
Versions: 3
Compression:
Stored size: 1004 Bytes
Contents
<p class="uikit-text-input__root {{ include.className | default: null }}"> {% if include.label %}<label class="uikit-text-input__label" for="{{ include.id }}">{{ include.label }}</label>{% endif %} <input class="uikit-text-input uikit-text-input--block date-field" type="date" id="{{ include.id }}" name="{{ include.id }}" {% if include.required %}data-parsley-required{% endif %} {% if include.validation_message %}data-parsley-error-message="{{ include.validation_message }}"{% endif %} {% if include.pattern %}data-parsley-pattern="{{ include.pattern }}"{% endif %} {% if include.past_date %}data-parsley-past-date{% endif %} > </p> <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { window.Parsley.addValidator('pastDate', { validateString: function(value) { return new Date() > new Date(value) }, messages: { en: 'Please enter a date in the past', } }); }); </script>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dta_rapid-0.7.7 | _includes/forms/date-field.html |
dta_rapid-0.7.6 | _includes/forms/date-field.html |
dta_rapid-0.7.5 | _includes/forms/date-field.html |