diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2019-10-06 11:34:17 +0300 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2019-10-06 11:34:17 +0300 |
commit | 847b0718b6a0cfe1a0c6b0b370c5715cf108db65 (patch) | |
tree | 23f5cfd355de1cdb88cc466999526a47ee01fb45 /static/admin | |
parent | 43fc15eea80adfdfd3681ecbc26eb9b6fbd350c6 (diff) |
Add compatability for v4 in N CMS
Diffstat (limited to 'static/admin')
-rw-r--r-- | static/admin/config.yml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml index 220a47d..f470a4a 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -114,9 +114,20 @@ collections: allow_add: true fields: - {label: "Name", name: "name", widget: string} + - {label: "Category", hint: "All systems need a category. For more, read the migration docs: https://github.com/cstate/cstate/wiki/Usage#v3-to-v4", name: "category", widget: string} - {label: "Description", name: "description", widget: string, required: false} - {label: "Partial", hint: "Custom HTML feature: https://github.com/cstate/cstate/wiki/Customization#custom-html", name: "partial", widget: string, required: false} - # Components + # Categories + - label: "Categories" + name: "categories" + widget: "list" + allow_add: true + fields: + - {label: "Name", name: "name", widget: string} + - {label: "Description", name: "description", widget: string, required: false} + - {label: "Should this category be open by default", name: "closed", widget: "boolean", required: false} + - {label: "Should the name of this category be shown? If you want to create the appearance of an Uncategorized category, enable this.", name: "untited", widget: "boolean", required: false} + # Tabs - label: "Tabs" hint: 'You can add extra tabs below the main homepage summary, for example, to external sites, monitoring services, as shown in the example below. Try Uptime Robot!' name: "customTabs" @@ -173,6 +184,15 @@ collections: min: 1 max: 100 default: 10 + # Incidents view format + - label: 'Should the incident history be sorted by year or month?' + name: 'incidentHistoryFormat' + hint: 'Enabling sorting disables pagination. More: https://github.com/cstate/cstate/wiki/Customization#enable-sorting--archives-by-year-or-month-v40' + widget: 'select' + options: + - { label: "Show by year", value: "yearly" } + - { label: "Show by month", value: "monthly" } + - { label: "No sorting; enable pagination", value: "none" } # Brand color - label: 'Header: always keep brand color the same' name: 'alwaysKeepBrandColor' |