Amélioration choix

This commit is contained in:
Jean-Marie Favreau 2024-11-23 15:57:03 +01:00
parent 2da854545f
commit 524d178055
3 changed files with 6 additions and 2 deletions

View File

@ -130,7 +130,6 @@ Duplication de {% else %}
delimiter: ',', delimiter: ',',
removeItemButton: true, removeItemButton: true,
shouldSort: true, shouldSort: true,
callbackOnCreateTemplates: () => (show_firstgroup)
}); });

View File

@ -100,7 +100,6 @@
delimiter: ',', delimiter: ',',
removeItemButton: true, removeItemButton: true,
shouldSort: true, shouldSort: true,
callbackOnCreateTemplates: () => (show_firstgroup)
}); });

View File

@ -5,6 +5,7 @@
<script src="{% url 'jsi18n' %}"></script> <script src="{% url 'jsi18n' %}"></script>
<script src="/static/admin/js/vendor/jquery/jquery.js"></script> <script src="/static/admin/js/vendor/jquery/jquery.js"></script>
<script src="/static/admin/js/jquery.init.js"></script> <script src="/static/admin/js/jquery.init.js"></script>
<script src="{% static 'choicejs/choices.min.js' %}"></script>
<script>window.CKEDITOR_BASEPATH = '/static/ckeditor/ckeditor/';</script> <script>window.CKEDITOR_BASEPATH = '/static/ckeditor/ckeditor/';</script>
{% endblock %} {% endblock %}
@ -30,4 +31,9 @@
</form> </form>
</article> </article>
<script>
const places = document.querySelector('#id_principal_place');
const choices_places = new Choices(places);
</script>
{% endblock %} {% endblock %}