{% assign value = include.value | default: '2020-06-20' %} {% assign placeholder = include.placeholder | default: 'Select a date' %} {% assign id = include.id %} {% if id %} {% capture input %} {% endcapture %} {% if include.inline %}
{% elsif include.layout == 'icon' %}
{{ input | replace: include.class, '' }} {% include ui/icon.html icon="calendar" %}
{% elsif include.layout == 'icon-prepend' %}
{% include ui/icon.html icon="calendar" %} {{ input | replace: include.class, '' }}
{% else %} {{ input }} {% endif %} {% capture script %} {% endcapture %} {% if include.show-scripts %} {{ script }} {% else %} {% capture_global scripts %} {{ script }} {% endcapture_global %} {% endif %} {% endif %}