diff --git a/static/admin/config/collections/author.js b/static/admin/config/collections/author.js index 1442df4e..337f001f 100644 --- a/static/admin/config/collections/author.js +++ b/static/admin/config/collections/author.js @@ -19,38 +19,48 @@ const AuthorCollection = { field: "type", value: "author", }, - view_filters: [ - { - label: "aktiv", - field: "active", - pattern: true, - }, - { - label: "inaktiv", - field: "active", - pattern: false, - }, - { - label: "einfach", - field: "simplified", - pattern: true, - }, - { - label: "erweitert", - field: "simplified", - pattern: false, - }, - ], - view_groups: [ - { - label: "vereinfacht", - field: "simplified", - }, - { - label: "aktiv", - field: "active", - }, - ], + view_filters: { + filters: [ + { + name: "active", + label: "aktiv", + field: "active", + pattern: true, + }, + { + name: "inactive", + label: "inaktiv", + field: "active", + pattern: false, + }, + { + name: "simplified", + label: "einfach", + field: "simplified", + pattern: true, + }, + { + name: "extended", + label: "erweitert", + field: "simplified", + pattern: false, + }, + ], + }, + view_groups: { + groups: [ + { + name: "simplified", + label: "vereinfacht", + field: "simplified", + }, + { + name: "active", + label: "aktiv", + field: "active", + }, + ], + }, summary_fields: ["title", "active", "simplified", "body"], fields: [ { diff --git a/static/admin/config/collections/blog.js b/static/admin/config/collections/blog.js index 1405e936..d479a378 100644 --- a/static/admin/config/collections/blog.js +++ b/static/admin/config/collections/blog.js @@ -24,12 +24,15 @@ const BlogCollection = { field: "type", value: "post", }, - view_groups: [ - { - label: "Entwurf", - field: "draft", - }, - ], + view_groups: { + groups: [ + { + name: "draft", + label: "Entwurf", + field: "draft", + }, + ], + }, sortable_fields: { fields: ["date", "title"], default: { diff --git a/static/admin/config/collections/cantorfora.js b/static/admin/config/collections/cantorfora.js index 84cad60e..42822154 100644 --- a/static/admin/config/collections/cantorfora.js +++ b/static/admin/config/collections/cantorfora.js @@ -19,12 +19,15 @@ const CantorforaCollection = { frame: true, size: "half", }, - view_groups: [ - { - label: "Entwürfe", - field: "draft", - }, - ], + view_groups: { + groups: [ + { + name: "draft", + label: "Entwürfe", + field: "draft", + }, + ], + }, summary_fields: ["title", "draft", "description"], sortable_fields: { fields: ["index", "title"], diff --git a/static/admin/index.html b/static/admin/index.html index e408d173..e1339395 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -9,12 +9,12 @@ />