fix locales sort order

This commit is contained in:
ghost 2023-11-13 08:24:12 +02:00
parent 77616c3c8a
commit 7a1fa12271

View File

@ -87,9 +87,9 @@
</div>
</td>
<td class="padding-t-16-px padding-b-8-px">
{% for locale in locales %}
{% for locale in locales | sort %}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if locale in user.locales | sort %}
{% if locale in user.locales %}
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" checked="checked" />
{% else %}
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" />