mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-03-09 20:01:18 +00:00
base.html: add language selector
This commit is contained in:
parent
d79fc2a45f
commit
eb14141371
@ -29,6 +29,16 @@
|
||||
<li><a href={% url pyi2phosts.postkey.views.addkey %}>Register a domain</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form action="/i18n/setlang/" method="post">
|
||||
{% csrf_token %}
|
||||
{% for lang in LANGUAGES %}
|
||||
<input type="radio" value="{{ lang.0 }}" name="language" />
|
||||
<img src="/static/{{ lang.0 }}.png" width="16" height="11" alt="{{ lang.0 }}"/>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Set" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<div class="main">
|
||||
|
Loading…
x
Reference in New Issue
Block a user