Fix config dropdown 'Disabled' selection
This commit is contained in:
parent
b64a292282
commit
d19885cbbe
|
@ -114,7 +114,7 @@
|
|||
<div class="form-group">
|
||||
<label for="config_auto_convert_to_format">{{_('Automatically convert ebooks to format')}}</label>
|
||||
<select name="config_auto_convert_to_format" id="config_auto_convert_to_format" class="form-control">
|
||||
<option value="" >Disable</option>
|
||||
<option value="" {% if not config.config_auto_convert_to_format %} selected{% endif %}>Disable</option>
|
||||
{% for format in config.config_upload_formats.split(",") %}
|
||||
<option value="{{ format }}"{% if config.config_auto_convert_to_format.lower() == format.lower() %} selected{% endif %}>{{ format }}</option>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue