refactor: Formatting
This commit is contained in:
parent
c4012f1980
commit
8037b66597
@ -19,7 +19,7 @@
|
|||||||
<p>{{ user.username }}</p>
|
<p>{{ user.username }}</p>
|
||||||
<form action="{% url 'logout' %}" method="post">
|
<form action="{% url 'logout' %}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit">{% translate "Ausloggen"%}</button>
|
<button type="submit">{% translate "Ausloggen" %}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -28,20 +28,20 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form action="{% url 'change-language' %}" method="post" onchange='this.form.submit()'>
|
<form action="{% url 'change-language' %}" method="post" onchange='this.form.submit()'>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<select name="language" onchange='this.form.submit()'>
|
<select name="language" onchange='this.form.submit()'>
|
||||||
{% get_current_language as LANGUAGE_CODE_CURRENT %}
|
{% get_current_language as LANGUAGE_CODE_CURRENT %}
|
||||||
{% get_available_languages as LANGUAGES %}
|
{% get_available_languages as LANGUAGES %}
|
||||||
{% for language in LANGUAGES %}
|
{% for language in LANGUAGES %}
|
||||||
<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE_CURRENT %} selected{% endif %}>
|
<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE_CURRENT %} selected{% endif %}>
|
||||||
{{ language.0|language_name_local }}
|
{{ language.0|language_name_local }}
|
||||||
</option>
|
</option>
|
||||||
<!--<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE %} selected{% endif %}>
|
<!--<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE %} selected{% endif %}>
|
||||||
{{ language.0|language_name_local }} ({{ language.0 }})
|
{{ language.0|language_name_local }} ({{ language.0 }})
|
||||||
</option>-->
|
</option>-->
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<!--<input type="submit" value={% translate "change" %}>-->
|
<!--<input type="submit" value={% translate "change" %}>-->
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user