Add 5.1 release notes for changed `attrs.html` template location (#10887)

Fixes #10874
stable/5.1.x
LB Johnston 2023-09-13 08:52:27 +10:00
rodzic b0f038e2d0
commit 2f8fe9aa3f
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -535,3 +535,12 @@ Additionally, two new events will be dispatched when the dialog visibility chang
| ------ | ----------------- |
| Show | `w-dialog:shown` |
| Hide | `w-dialog:hidden` |
## Shared template `.../tables/attrs.html` has been renamed to `.../shared/attrs.html`
The undocumented shared template for rendering a dict of `attrs` to HTML, similar to Django form widgets, has been renamed.
| | Template location | Usage with `include` |
| --- | --------------------------------------------------------- | ---------------------------------------------------------------------- |
| Old | `wagtail/admin/templates/wagtailadmin/tables/attrs.html ` | `{% include "wagtailadmin/tables/attrs.html" with attrs=link_attrs %}` |
| New | `wagtail/admin/templates/wagtailadmin/shared/attrs.html` | `{% include "wagtailadmin/shared/attrs.html" with attrs=link_attrs %}` |