gl-website-deployer/admin/phpMyAdmin/templates/table/relation/dropdown_generate.twig

10 lines
309 B
Twig
Raw Normal View History

2024-11-23 20:45:29 +01:00
{{ dropdown_question is not empty ? dropdown_question -}}
<select name="{{ select_name }}">
{% for one_value, one_label in choices %}
<option value="{{ one_value }}"
{%- if selected_value == one_value %} selected="selected"{% endif %}>
{{ one_label }}
</option>
{% endfor %}
</select>