backend:
  name: gitea
  repo: StartIT/mantelzorgwoning.info
  branch: main
  app_id: e259dcce-d5d7-48cc-a401-f458548c8e28
  api_root: https://git.start-it.nl/api/v1
  base_url: https://git.start-it.nl
  auth_endpoint: https://git.start-it.nl/login/oauth/authorize

media_folder: "static/images"
public_folder: "/images"

collections:
  - name: "homepage"
    label: "Homepage"
    files:
      - file: "content/_index.nl.md"
        name: "home"
        label: "Homepage"
        fields:
          - { label: "Titel", name: "title", widget: "string" }

          - label: "Banner"
            name: "banner"
            widget: "object"
            fields:
              - { label: "Titel", name: "title", widget: "string" }
              - { label: "Subtitel", name: "subtitle", widget: "markdown" }
              - { label: "Afbeelding", name: "image", widget: "image" }

          - label: "Banner-knop"
            name: "banner_button"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: true }
              - { label: "Label", name: "label", widget: "string" }
              - { label: "Link", name: "link", widget: "string" }

          - label: "Call to Action"
            name: "call_to_action"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: true }
              - { label: "Titel", name: "title", widget: "string" }
              - { label: "Afbeelding", name: "image", widget: "image" }
              - { label: "Content", name: "content", widget: "markdown" }
              - label: "Knop"
                name: "button"
                widget: "object"
                fields:
                  - { label: "Actief", name: "enable", widget: "boolean", default: true }
                  - { label: "Label", name: "label", widget: "string" }
                  - { label: "Link", name: "link", widget: "string" }
  - name: "faq"
    label: "Veelgestelde vragen"
    files:
      - file: "content/faq/index.nl.md"
        name: "faq_page"
        label: "FAQ pagina"
        fields:
          - { label: "Titel", name: "title", widget: "string" }
          - { label: "Beschrijving", name: "description", widget: "string", required: false }
          - { label: "Concept", name: "draft", widget: "boolean", default: false }
          - { label: "Layout", name: "layout", widget: "string", default: "faq" }
          - label: "Build-instellingen"
            name: "build"
            widget: "object"
            fields:
              - { label: "Render", name: "render", widget: "string", default: "never", required: false }
              - { label: "List", name: "list", widget: "string", default: "never", required: false }
          - { label: "Inhoud (FAQ’s, shortcodes etc.)", name: "body", widget: "markdown" }
  - name: "beleid_provincies"
    label: "Beleid – Provincies"
    label_singular: "Provincie"
    folder: "content/beleid"
    create: true
    format: "frontmatter"
    extension: "md"
    path: "{{fields.key}}/_index.nl"
    slug: "{{fields.key}}"
    filter:
      field: "region"
      value: true
    fields:
      - { name: "title", label: "Titel", widget: "string" }
      - { name: "key", label: "Systeemnaam (map)", widget: "string", hint: "Bijv. drenthe, overijssel, gelderland" }
      - { name: "date", label: "Datum", widget: "datetime" }
      - { name: "draft", label: "Concept", widget: "boolean", default: false }
      - { name: "feedback", label: "Feedbackformulier tonen", widget: "boolean", default: true, required: false }
      - { name: "flag", label: "Vlag-icoon", widget: "image", required: false }
      - { name: "town", label: "Gemeentepagina", widget: "boolean", default: false, required: false }
      - { name: "region", label: "Provinciepagina", widget: "boolean", default: true }
      - { name: "general", label: "Algemene pagina", widget: "boolean", default: false, required: false }
      - { name: "body", label: "Inhoud", widget: "markdown" }
  - name: "beleid_gemeenten"
    label: "Beleid – Gemeenten"
    label_singular: "Gemeente"
    folder: "content/beleid"
    create: true
    format: "frontmatter"
    extension: "md"
    path: "{{fields.provincie}}/{{slug}}/_index.nl"
    slug: "{{slug}}"
    filter:
      field: "town"
      value: true
    fields:
      - { name: "title", label: "Titel", widget: "string" }
      - name: "provincie"
        label: "Provincie"
        widget: "relation"
        collection: "beleid_provincies"
        search_fields: ["title", "key"]
        value_field: "key"
        display_fields: ["title"]
        hint: "Kies de provincie waaronder deze gemeente valt"
      - { name: "date", label: "Datum", widget: "datetime" }
      - { name: "draft", label: "Concept", widget: "boolean", default: false }
      - { name: "feedback", label: "Feedbackformulier tonen", widget: "boolean", default: true, required: false }
      - { name: "town", label: "Gemeentepagina", widget: "boolean", default: true }
      - { name: "region", label: "Provinciepagina", widget: "boolean", default: false, required: false }
      - { name: "general", label: "Algemene pagina", widget: "boolean", default: false, required: false }
      - name: "town_options"
        label: "Gemeente opties"
        widget: "object"
        collapsed: true
        fields:
          - { name: "flag", label: "Vlag-icoon", widget: "image", required: false }
          - { name: "map_img", label: "Kaart-afbeelding", widget: "image", required: false }
          - { name: "map_url", label: "Kaart-URL", widget: "string", required: false }

          - name: "mantelzorgwoning_status"
            label: "Status mantelzorgwoning"
            widget: "select"
            options: ["positive", "neutral", "negative"]
            default: "neutral"

          - name: "premantelzorgwoning_status"
            label: "Status pré-mantelzorgwoning"
            widget: "select"
            options: ["positive", "neutral", "negative"]
            default: "neutral"

          - name: "generatiewoning_status"
            label: "Status generatiewoning"
            widget: "select"
            options: ["positive", "neutral", "negative"]
            default: "neutral"

          - name: "vrijebouw_status"
            label: "Status vrije bouw"
            widget: "select"
            options: ["positive", "neutral", "negative"]
            default: "neutral"

          - name: "soil_types"
            label: "Bodemtypes"
            widget: "list"
            field: { name: "type", label: "Type", widget: "string" }

          - name: "natura_links"
            label: "Natura 2000 links"
            widget: "list"
            field: { name: "url", label: "URL", widget: "string" }

          - { name: "monumenten_count", label: "Aantal monumenten", widget: "number", required: false }

          - name: "monumenten_links"
            label: "Monumenten-links"
            widget: "list"
            field: { name: "url", label: "URL", widget: "string" }

          - { name: "soil_composition", label: "Bodemsamenstelling (tekst)", widget: "string", required: false }

          - { name: "info_town_hall_address", label: "Adres gemeentehuis", widget: "string", required: false }
          - { name: "info_town_hall_phone", label: "Telefoon gemeentehuis", widget: "string", required: false }

          - { name: "info_residents_total", label: "Aantal inwoners (tekst)", widget: "string", required: false }
          - { name: "info_residents_density", label: "Inwonersdichtheid (tekst)", widget: "string", required: false }
          - { name: "info_town_surface_total", label: "Oppervlakte totaal", widget: "string", required: false }
          - { name: "info_town_surface_soil", label: "Oppervlakte land", widget: "string", required: false }
          - { name: "info_town_surface_water", label: "Oppervlakte water", widget: "string", required: false }

          - { name: "info_town_website", label: "Website gemeente", widget: "string", required: false }
          - { name: "info_town_omgevingsloket", label: "URL Omgevingsloket", widget: "string", required: false }
          - { name: "info_town_wiki", label: "Wikipedia-pagina", widget: "string", required: false }

          - { name: "info_town_train_bool", label: "Treinstation aanwezig", widget: "boolean", default: false, required: false }

          - name: "info_town_bus_array"
            label: "Belangrijke buslijnen"
            widget: "list"
            field:
              name: "line"
              label: "Lijn (markdown of URL)"
              widget: "string"

      - { name: "body", label: "Inhoud", widget: "markdown" }
