Mercurial > sat_legacy_website
comparison templates/sat_website/menu.html @ 32:876ae5e23690
language selector doesn't display the language code and put the first letter un uppercase (even in French, normally no upper case but here it's the first word of a word group)
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 27 Jan 2015 07:54:43 +0100 |
parents | 30a1edf90fae |
children |
comparison
equal
deleted
inserted
replaced
31:31d196cf3b34 | 32:876ae5e23690 |
---|---|
45 {% csrf_token %} | 45 {% csrf_token %} |
46 <input name="next" type="hidden" value="{{ redirect_to }}" /> | 46 <input name="next" type="hidden" value="{{ redirect_to }}" /> |
47 <select id="language_select" name="language"> | 47 <select id="language_select" name="language"> |
48 {% get_language_info_list for available_languages as languages %} | 48 {% get_language_info_list for available_languages as languages %} |
49 {% for language in languages %} | 49 {% for language in languages %} |
50 <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option> | 50 <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local|title }}</option> |
51 {% endfor %} | 51 {% endfor %} |
52 </select> | 52 </select> |
53 </form> | 53 </form> |
54 </li> | 54 </li> |
55 {% endif %} | 55 {% endif %} |