preselect currently active language in 'public_change_language'

This commit is contained in:
Andreas Kotowicz 2011-11-29 15:15:24 +01:00
parent f823b72db6
commit b18afe87bd

View File

@ -2,7 +2,6 @@
{% block helpdesk_title %}{% trans "View a Ticket" %}{% endblock %}
{% block helpdesk_body %}
<h3>{% trans "Change the display language" %}</h3>
<form action="/i18n/setlang/" method="post">
{% csrf_token %}
@ -10,7 +9,7 @@
<select name="language">
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
<option value="{{ language.code }}"{% if LANGUAGE_CODE = language.code %} selected{% endif %}>{{ language.name_local }} ({{ language.code }})</option>
{% endfor %}
</select>
<input type="submit" value="Go" />