Skip to content

Commit

Permalink
comment select display lang input
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatvijay committed Sep 6, 2023
1 parent 4ec6d03 commit de03c76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mathesar/templates/mathesar/login_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@
<div class="login-card align-center">
<h1>{% block h1 %} {% endblock %}</h1>
{% block box_content %} {% endblock %}
<!-- Commenting it out to avoid releasing any half baked changes
{% comment %} set_language https://docs.djangoproject.com/en/4.2/topics/i18n/translation/#the-set-language-redirect-view {% endcomment %}
<form action="{% url 'set_language' %}" method="post">{% csrf_token %}
<input name="next" type="hidden" value="{{ redirect_to }}">
<select name="language" onchange="form.submit()" class="language-selector align-center">
<select name="language" onchange="form.submit()" class="language-selector align-center" aria-label="Display Language">
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_language_info_list for LANGUAGES as languages %}
Expand All @@ -163,5 +165,6 @@ <h1>{% block h1 %} {% endblock %}</h1>
{% endfor %}
</select>
</form>
-->
</div>
{% endblock %}

0 comments on commit de03c76

Please sign in to comment.