Browse Source

fix locales sort order

main
ghost 1 year ago
parent
commit
7a1fa12271
  1. 4
      templates/default/user/settings.html.twig

4
templates/default/user/settings.html.twig

@ -87,9 +87,9 @@
</div> </div>
</td> </td>
<td class="padding-t-16-px padding-b-8-px"> <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"> <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" /> <input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" checked="checked" />
{% else %} {% else %}
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" /> <input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" />

Loading…
Cancel
Save