-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use template for getHtmlForImportCharset
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
- Loading branch information
1 parent
aeef8e5
commit ef7936a
Showing
3 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="formelementrow" id="charaset_of_file"> | ||
{# Charset of file #} | ||
<label for="charset_of_file">{% trans 'Character set of the file:' %}</label> | ||
{% if is_encoding_supported %} | ||
<select id="charset_of_file" name="charset_of_file" size="1"> | ||
{% for charset in encodings %} | ||
<option value="{{ charset }}" | ||
{% if (import_charset is empty and charset == 'utf-8') | ||
or charset == import_charset %} | ||
selected="selected" | ||
{% endif %}> | ||
{{ charset }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
{% else %} | ||
{{ Charsets_getCharsetDropdownBox( | ||
dbi, | ||
disable_is, | ||
'charset_of_file', | ||
'charset_of_file', | ||
'utf8', | ||
false | ||
) }} | ||
{% endif %} | ||
</div> |