pull/115/merge
Louis Vézina 7 years ago
parent 68880cbacb
commit 43d54823e3

@ -257,8 +257,15 @@ def edit_series(no):
else: else:
lang = 'None' lang = 'None'
if str(lang) == "['']": single_language = get_general_settings()[7]
lang = '[]' if single_language == 'True':
if str(lang) == "['None']":
lang = 'None'
else:
lang = str(lang)
else:
if str(lang) == "['']":
lang = '[]'
hi = request.forms.get('hearing_impaired') hi = request.forms.get('hearing_impaired')

@ -241,6 +241,9 @@
<div class="nine wide column"> <div class="nine wide column">
<select name="languages" id="series_languages" {{!'multiple="" ' if single_language == 'False' else ''}} class="ui fluid selection dropdown"> <select name="languages" id="series_languages" {{!'multiple="" ' if single_language == 'False' else ''}} class="ui fluid selection dropdown">
<option value="">Languages</option> <option value="">Languages</option>
%if single_language == 'True':
<option value="None">None</option>
%end
%for language in languages: %for language in languages:
<option value="{{language[0]}}">{{language[1]}}</option> <option value="{{language[0]}}">{{language[1]}}</option>
%end %end

Loading…
Cancel
Save