devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/templates/dropdown.twig

12 lines
502 B
Twig
Raw Normal View History

2018-04-14 09:18:00 +00:00
<select name="{{ select_name }}"{% if id is not empty %} id="{{ id }}"{% endif -%}
{%- if class is not empty %} class="{{ class }}"{% endif %}>
{% if placeholder is not empty %}
<option value="" disabled="disabled"
{%- if not selected %} selected="selected"{% endif %}>{{ placeholder }}</option>
{% endif %}
{% for option in result_options %}
<option value="{{ option['value'] }}"
{{- option['selected'] ? ' selected="selected"' }}>{{ option['label'] }}</option>
{% endfor %}
</select>