{
    "key": "group_bwm_timetable",
    "title": "Edit Timetable Content",
    "fields": [
        {
            "key": "field_bwm_tt_intro",
            "label": "How this works",
            "name": "",
            "aria-label": "",
            "type": "message",
            "instructions": "",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "message": "This page is **only for updating the text (copy) and images** shown in the Brentwood Timetable — nothing else.\r\n\r\n**The schedule grid is fixed.** The days, times, and block layout do not change from this page — they stay exactly as designed.\r\n\r\n**The schedule itself lives in the theme's code (the child theme)** and can be adjusted there by a developer if it ever needs to change.\r\n\r\n— — —\r\n\r\n**Content Panels** — each timetable category has a panel that appears when a visitor clicks that category. Open a category below and edit its heading, body text, images, and \"Learn more\" link. The list of categories is fixed: you can't add, remove, or reorder them.\r\n\r\n**Academic Block Rotation** — the rotation table shown inside the Academics panel.",
            "new_lines": "wpautop",
            "esc_html": 0
        },
        {
            "key": "field_bwm_tt_tab_panels",
            "label": "Content Panels",
            "name": "",
            "aria-label": "",
            "type": "tab",
            "instructions": "",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "placement": "top",
            "endpoint": 0
        },
        {
            "key": "field_bwm_tt_panels",
            "label": "Timetable Panels",
            "name": "tt_panels",
            "aria-label": "",
            "type": "repeater",
            "instructions": "Click a category below to open it and edit its panel content (heading, text, images, link).",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "layout": "block",
            "pagination": 0,
            "min": 10,
            "max": 10,
            "collapsed": "field_bwm_tt_category",
            "button_label": "Add Panel",
            "rows_per_page": 20,
            "sub_fields": [
                {
                    "key": "field_bwm_tt_category",
                    "label": "Category",
                    "name": "tt_category",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "Fixed category name (shown for reference — not editable).",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "bw-tt-cat-label",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "",
                    "placeholder": "",
                    "prepend": "",
                    "append": "",
                    "readonly": 1,
                    "parent_repeater": "field_bwm_tt_panels"
                },
                {
                    "key": "field_bwm_tt_header",
                    "label": "Heading",
                    "name": "tt_header",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "",
                    "placeholder": "",
                    "prepend": "",
                    "append": "",
                    "parent_repeater": "field_bwm_tt_panels"
                },
                {
                    "key": "field_bwm_tt_body",
                    "label": "Body Text",
                    "name": "tt_body",
                    "aria-label": "",
                    "type": "wysiwyg",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "tabs": "all",
                    "toolbar": "basic",
                    "media_upload": 1,
                    "delay": 0,
                    "parent_repeater": "field_bwm_tt_panels"
                },
                {
                    "key": "field_bwm_tt_image",
                    "label": "Panel Image",
                    "name": "tt_image",
                    "aria-label": "",
                    "type": "image",
                    "instructions": "The single photo shown inside the expanded text panel. Used only by full-width panels (Academics, Food, Evening Prep).",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "return_format": "id",
                    "library": "all",
                    "preview_size": "medium",
                    "min_width": "",
                    "min_height": "",
                    "min_size": "",
                    "max_width": "",
                    "max_height": "",
                    "max_size": "",
                    "mime_types": "",
                    "parent_repeater": "field_bwm_tt_panels"
                },
                {
                    "key": "field_bwm_tt_gallery",
                    "label": "Block Background Images",
                    "name": "tt_gallery",
                    "aria-label": "",
                    "type": "gallery",
                    "instructions": "Faint photos shown behind this category's timetable blocks in the grid (cycled across them). Not the panel photo.",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "return_format": "id",
                    "library": "all",
                    "min": "",
                    "max": "",
                    "min_width": "",
                    "min_height": "",
                    "min_size": "",
                    "max_width": "",
                    "max_height": "",
                    "max_size": "",
                    "mime_types": "",
                    "insert": "append",
                    "preview_size": "medium",
                    "parent_repeater": "field_bwm_tt_panels"
                },
                {
                    "key": "field_bwm_tt_link",
                    "label": "\"Learn more\" Link (URL or path)",
                    "name": "tt_link",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "Relative path (e.g. \/academics) or full URL. Leave blank to hide the link.",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "50",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "",
                    "placeholder": "\/academics",
                    "prepend": "",
                    "append": "",
                    "parent_repeater": "field_bwm_tt_panels"
                },
                {
                    "key": "field_bwm_tt_link_text",
                    "label": "Link Text",
                    "name": "tt_link_text",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "e.g. Learn more about Academics. Leave blank to hide the link.",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "50",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "",
                    "placeholder": "",
                    "prepend": "",
                    "append": "",
                    "parent_repeater": "field_bwm_tt_panels"
                }
            ]
        },
        {
            "key": "field_bwm_tt_rot_tab",
            "label": "Academic Block Rotation",
            "name": "",
            "aria-label": "",
            "type": "tab",
            "instructions": "",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "placement": "top",
            "endpoint": 0
        },
        {
            "key": "field_bwm_tt_rot_title",
            "label": "Rotation Heading",
            "name": "tt_rot_title",
            "aria-label": "",
            "type": "text",
            "instructions": "Heading shown above the rotation table in the Academics panel.",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "default_value": "",
            "maxlength": "",
            "placeholder": "Academic Block Rotation",
            "prepend": "",
            "append": ""
        },
        {
            "key": "field_bwm_tt_rot_days",
            "label": "Day Columns",
            "name": "tt_rot_days",
            "aria-label": "",
            "type": "textarea",
            "instructions": "Column headers, one per line (e.g. Day 1 … Saturday 2). The number of lines must match the number of letters in each period row below.",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "default_value": "",
            "placeholder": "",
            "maxlength": "",
            "rows": 8,
            "new_lines": ""
        },
        {
            "key": "field_bwm_tt_rot_periods",
            "label": "Period Rows",
            "name": "tt_rot_periods",
            "aria-label": "",
            "type": "repeater",
            "instructions": "Each row is a period. Enter the block letters in day order, separated by commas (e.g. A, D, C, F, B, E, A, D).",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "layout": "table",
            "pagination": 0,
            "min": 0,
            "max": 0,
            "collapsed": "",
            "button_label": "Add Period",
            "rows_per_page": 20,
            "sub_fields": [
                {
                    "key": "field_bwm_tt_rot_period_name",
                    "label": "Period",
                    "name": "tt_rot_period_name",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "25",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "",
                    "placeholder": "Period 1",
                    "prepend": "",
                    "append": "",
                    "parent_repeater": "field_bwm_tt_rot_periods"
                },
                {
                    "key": "field_bwm_tt_rot_period_letters",
                    "label": "Block Letters (in day order)",
                    "name": "tt_rot_period_letters",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "75",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "",
                    "placeholder": "A, D, C, F, B, E, A, D",
                    "prepend": "",
                    "append": "",
                    "parent_repeater": "field_bwm_tt_rot_periods"
                }
            ]
        },
        {
            "key": "field_bwm_tt_rot_colors",
            "label": "Block Colours",
            "name": "tt_rot_colors",
            "aria-label": "",
            "type": "repeater",
            "instructions": "Colour for each block letter used above.",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "layout": "table",
            "pagination": 0,
            "min": 0,
            "max": 0,
            "collapsed": "",
            "button_label": "Add Colour",
            "rows_per_page": 20,
            "sub_fields": [
                {
                    "key": "field_bwm_tt_rot_color_letter",
                    "label": "Letter",
                    "name": "tt_rot_color_letter",
                    "aria-label": "",
                    "type": "text",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "30",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "maxlength": "2",
                    "placeholder": "A",
                    "prepend": "",
                    "append": "",
                    "parent_repeater": "field_bwm_tt_rot_colors"
                },
                {
                    "key": "field_bwm_tt_rot_color_value",
                    "label": "Colour",
                    "name": "tt_rot_color_value",
                    "aria-label": "",
                    "type": "color_picker",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "70",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "enable_opacity": 0,
                    "return_format": "string",
                    "parent_repeater": "field_bwm_tt_rot_colors"
                }
            ]
        }
    ],
    "location": [
        [
            {
                "param": "options_page",
                "operator": "==",
                "value": "timetable-management"
            }
        ]
    ],
    "menu_order": 0,
    "position": "normal",
    "style": "default",
    "label_placement": "top",
    "instruction_placement": "label",
    "hide_on_screen": "",
    "active": true,
    "description": "Editable text and images for the Brentwood Timetable category panels. Overlaid on the code defaults in blocks/timetable/grid.php.",
    "show_in_rest": 0,
    "display_title": "",
    "allow_ai_access": false,
    "ai_description": "",
    "modified": 1782216000
}
