Use current language when creating an election
This commit is contained in:
parent
ceba6f4269
commit
2240938b14
1 changed files with 7 additions and 2 deletions
|
@ -8,9 +8,14 @@
|
|||
<link rel="stylesheet" href="{% static 'vendor/datetimepicker/picker.css' %}">
|
||||
|
||||
<script>
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
new DateTimePicker('input[name=start_date]', {});
|
||||
new DateTimePicker('input[name=end_date]', {});
|
||||
new DateTimePicker('input[name=start_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=end_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue