{% import 'languages/'+lang|default('en')+'.html' as lang %}
<select autofocus required name="log_files" id="log_files" style="width: 200px;">
    <option disabled selected>{{lang.phrases.select_file}}</option>
    {% for file in return_files.split() %}
        {% if file == config_file_name %}
        <option value="{{ file.split('/')[-1] }}" selected>{{ file.split('/')[-1] }}</option>
        {% else %}
        <option value="{{ file.split('/')[-1] }}">{{ file.split('/')[-1] }}</option>
        {% endif %}
    {% endfor %}
</select>
<script>
	$(document).ready(function() {
		$('#log_files').select2();
	});
</script>
