| Current Path : /home/zieirix/www/administrator/components/com_gantry5/templates/forms/fields/select/ |
| Current File : /home/zieirix/www/administrator/components/com_gantry5/templates/forms/fields/select/date.html.twig |
{% extends 'forms/fields/select/selectize.html.twig' %}
{% block options %}
{% for key, text in field.options %}
<option
{# required attribute structures #}
{% if key == value %}selected="selected"{% endif %}
value="{{ key }}"
{# non-gloval attribute structures #}
{% if field.options.disabled in ['on', 'true', 1] %}disabled="disabled"{% endif %}
{% if field.options.label is defined %}label="{{ field.options.label }}"{% endif %}
>{{ key is empty ? text : "now"|date(key) }}</option>
{% endfor %}
{% endblock %}