Removed formats which are not possible to convert from list of convertable books
Update language files to be po-edit compatible
This commit is contained in:
OzzieIsaacs
2018-09-09 18:17:15 +02:00
parent bb7d2c6273
commit 01fb8ee681
12 changed files with 1359 additions and 1432 deletions
+3 -3
View File
@@ -26,7 +26,7 @@
{% endif %}
{% endif %}
{% if display_convertbtn and conversion_formats|length > 0 %}
{% if source_formats|length > 0 and conversion_formats|length > 0 %}
<div class="text-center more-stuff"><h4>{{_('Convert book format:')}}</h4>
<form class="padded-bottom" action="{{ url_for('convert_bookformat', book_id=book.id) }}" method="post" id="book_convert_frm">
<div class="form-group">
@@ -34,8 +34,8 @@
<label class="control-label" for="book_format_from">{{_('Convert from:')}}</label>
<select class="form-control" name="book_format_from" id="book_format_from">
<option disabled selected value> -- {{_('select an option')}} -- </option>
{% for file in book.data %}
<option>{{file.format}} </option>
{% for format in source_formats %}
<option>{{format|upper}} </option>
{% endfor %}
</select>
<label class="control-label" for="book_format_to">{{_('Convert to:')}}</label>