add form media to user add/edit forms (#5146)

pull/5148/head
Damian 2019-03-14 14:08:47 +01:00 zatwierdzone przez Matt Westcott
rodzic b2c8be0207
commit ef7bd7989e
5 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -35,6 +35,7 @@ Changelog
* Fix: Don't show page type on page chooser button when multiple types are allowed (Thijs Kramer)
* Fix: Make sure page chooser search results correspond to the latest search by canceling previous requests (Esper Kuijs)
* Fix: Inform user when moving a page from one parent to another where there is an already existing page with the same slug (Casper Timmers)
* Fix: User add/edit forms now support form widgets with JS/CSS media (Damian Grinwis)
2.4 (19.12.2018)

Wyświetl plik

@ -354,6 +354,7 @@ Contributors
* Thomas Kremmel
* patta42
* Esper Kuijs
* Damian Grinwis
Translators
===========

Wyświetl plik

@ -50,6 +50,7 @@ Bug fixes
* Page copying no longer allowed if page model has reached its ``max_count`` (Andy Babic)
* Don't show page type on page chooser button when multiple types are allowed (Thijs Kramer)
* Make sure page chooser search results correspond to the latest search by canceling previous requests (Esper Kuijs)
* User add/edit forms now support form widgets with JS/CSS media (Damian Grinwis)
Upgrade considerations

Wyświetl plik

@ -46,3 +46,14 @@
</div>
</form>
{% endblock %}
{% block extra_css %}
{{ block.super }}
{% include "wagtailadmin/pages/_editor_css.html" %}
{{ form.media.css }}
{% endblock %}
{% block extra_js %}
{{ block.super }}
{% include "wagtailadmin/pages/_editor_js.html" %}
{{ form.media.js }}
{% endblock %}

Wyświetl plik

@ -63,3 +63,12 @@
</div>
</form>
{% endblock %}
{% block extra_css %}
{{ block.super }}
{% include "wagtailadmin/pages/_editor_css.html" %}
{% endblock %}
{% block extra_js %}
{{ block.super }}
{% include "wagtailadmin/pages/_editor_js.html" %}
{% endblock %}