aboutsummaryrefslogtreecommitdiff
path: root/static/admin/config.yml
blob: 1b88a3a7b186f06ff3560549d61a6b20becd88af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This is the main configuration file for Netlify CMS.
# Netlify CMS is used as the admin panel for cState.
#
# While some settings here can be kept as is, you may
# want to change some for a more customized solution.
#
# You can look at what each option does and how to
# toggle between them on the Netlify CMS repo docs:
#
# https://github.com/netlify/netlify-cms/blob/master/docs/quick-start.md

backend:
  name: git-gateway
media_folder: "static/img"
public_folder: "/img"
display_url: /

# Do not change this!
collections:
  - name: "issue"
    label: "Incidents"
    label_singular: "Incident"
    description: "Welcome to the cState admin panel! Here you can create new incidents or manage existing ones. Go ahead and give it a shot."
    folder: "content/issues"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      # Hidden
      - {label: "Mark as incident", name: "Section", widget: "hidden", default: "issue"}
      # Very basic
      - {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}
      - {label: "End date & time (your time)", name: "ResolvedWhen", widget: "datetime", required: false}
      - label: "Severity"
        name: "Severity"
        widget: "select"
        options:
          - { label: "High (Down)", value: "down" }
          - { label: "Medium (Disrupted)", value: "disrupted" }
          - { label: "Low (Announcement)", value: "notice" }
      - label: "Affected systems (use exact name)"
        name: "Affected"
        widget: "list"
        allow_add: true
        required: false
        fields:
          - {label: "String", name: "string", widget: "string"}
      - {label: "Sequence of events", name: "body", widget: "markdown", default: "We are investigating a potential issue that might affect the uptime of one our of services."}