aboutsummaryrefslogtreecommitdiff
path: root/static/admin
diff options
context:
space:
mode:
Diffstat (limited to 'static/admin')
-rw-r--r--static/admin/config.yml48
1 files changed, 44 insertions, 4 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 5bee7cb..1b64060 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -29,6 +29,7 @@ collections:
- {label: "Title", name: "title", widget: "string"}
- {label: "Start date & time (your time) ⌚", name: "date", widget: "datetime"}
- {label: "Mark as resolved ✔", name: "resolved", widget: "boolean", required: false, default: false}
+ - {label: "Mark as informational ℹ", name: "informational", widget: "boolean", required: false, default: false}
- {label: "End date & time (your time) ⌛", name: "resolvedWhen", widget: "datetime", required: false}
- label: "Affected systems (use exact name, separated by commas) 🧐"
name: "affected"
@@ -38,9 +39,9 @@ collections:
name: "severity"
widget: "select"
options:
- - { label: "High (Down)", value: "down" }
- - { label: "Medium (Disrupted)", value: "disrupted" }
- - { label: "Low (Announcement)", value: "notice" }
+ - { label: "High (Down) ◼ ", value: "down" }
+ - { label: "Medium (Disrupted) ▲", value: "disrupted" }
+ - { label: "Low (Announcement) ◆", value: "notice" }
- label: "Markdown body (sequence of events, description, post-mortem)"
name: "body"
widget: "markdown"
@@ -113,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"
@@ -172,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'
@@ -224,3 +245,22 @@ collections:
widget: "hidden"
fields:
- {label: "affected", name: "affected", widget: "hidden", default: "affected"}
+ - label: "outputs (Do not touch!)"
+ name: outputs
+ widget: "hidden"
+ fields:
+ - label: "page"
+ name: page
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json']
+ - label: "section"
+ name: section
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json', 'rss']
+ - label: "home"
+ name: home
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json', 'rss'] \ No newline at end of file