Fix datetime picker modal detection and add _notif, _get and _post functions
This commit is contained in:
parent
c7bc1fbe16
commit
e14ceca91a
3 changed files with 53 additions and 19 deletions
|
@ -6,16 +6,16 @@
|
|||
{# DateTimePicker #}
|
||||
<script src="{% static 'vendor/datetimepicker/picker.js' %}"></script>
|
||||
<link rel="stylesheet" href="{% static 'vendor/datetimepicker/picker.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block custom_js %}
|
||||
<script>
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
new DateTimePicker('input[name=start_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=end_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=start_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=end_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
{# DateTimePicker #}
|
||||
<script src="{% static 'vendor/datetimepicker/picker.js' %}"></script>
|
||||
<link rel="stylesheet" href="{% static 'vendor/datetimepicker/picker.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block custom_js %}
|
||||
<script>
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
new DateTimePicker('input[name=start_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=end_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=start_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
new DateTimePicker('input[name=end_date]', {
|
||||
lang: '{{ LANGUAGE_CODE }}',
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue