Fix dropdown selector

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot 2017-05-06 21:29:32 +02:00 committed by GitHub
parent 74ec22e3cf
commit 207eed8030

View File

@ -1,4 +1,4 @@
<select name="{{ select_name }}" id="{{ id }}"{{ class ? ' class="' ~ class ~ '"' }}>
<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>