refactor: Formatting

This commit is contained in:
moanos [he/him] 2024-04-14 16:58:19 +02:00
parent c4012f1980
commit 8037b66597

View File

@ -19,7 +19,7 @@
<p>{{ user.username }}</p>
<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit">{% translate "Ausloggen"%}</button>
<button type="submit">{% translate "Ausloggen" %}</button>
</form>
</div>
{% else %}
@ -28,20 +28,20 @@
{% endif %}
<form action="{% url 'change-language' %}" method="post" onchange='this.form.submit()'>
{% csrf_token %}
<select name="language" onchange='this.form.submit()'>
{% get_current_language as LANGUAGE_CODE_CURRENT %}
{% get_available_languages as LANGUAGES %}
{% for language in LANGUAGES %}
<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE_CURRENT %} selected{% endif %}>
{{ language.0|language_name_local }}
</option>
<!--<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE %} selected{% endif %}>
{% csrf_token %}
<select name="language" onchange='this.form.submit()'>
{% get_current_language as LANGUAGE_CODE_CURRENT %}
{% get_available_languages as LANGUAGES %}
{% for language in LANGUAGES %}
<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE_CURRENT %} selected{% endif %}>
{{ language.0|language_name_local }}
</option>
<!--<option value="{{ language.0 }}" {% if language.0 == LANGUAGE_CODE %} selected{% endif %}>
{{ language.0|language_name_local }} ({{ language.0 }})
</option>-->
{% endfor %}
</select>
<!--<input type="submit" value={% translate "change" %}>-->
{% endfor %}
</select>
<!--<input type="submit" value={% translate "change" %}>-->
</form>
</div>
</div>