Form input date
Information
- Folder
src/components/patterns/form/form-input-date
Files
Schema
$schema: http://json-schema.org/draft-07/schema#
$id: /patterns/form/form-input-date
additionalProperties: false
properties:
content:
type: array
items:
type: string
format: html
Mocks
content:
- $tpl: '@fsk/form/form-element'
$ref: '@fsk/form/form-element#input'
children:
$tpl: '@fsk/form/form-element/input/input--date'
$ref: '@fsk/form/form-element/input/input--date'
attributes:
data-min: '+2'
Template
{#
# ATTENTION:
# This template is only relevant for unit tests
# to be sure that changes in fsk elements don't break the FE logic.
# It won't be consumed by Drupal
#}
<form class="PaymentForm js-PaymentForm" onsubmit="return false;">
{{ content }}
<button type="submit" hidden>Submit</button>
</form>
Variants