Skip to content

Commit

Permalink
move the link outside the form to make language dropdown look prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Aug 24, 2014
1 parent d83a08b commit cc630e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nsupdate/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
<form name="setLang{{ lang.name }}" action="{% url 'set_language' %}" method="post">
{% csrf_token %}
<input type="hidden" name="language" value="{{ lang.code }}" />
<a href="#" onclick="document.setLang{{ lang.name }}.submit();return false;">
{{ lang.name_local }} ({{ lang.name }}) [{{ lang.code }}]
</a>
</form>
<a href="#" onclick="document.setLang{{ lang.name }}.submit();return false;">
{{ lang.name_local }} ({{ lang.name }}) [{{ lang.code }}]
</a>
</li>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit cc630e3

Please sign in to comment.