# ===================================
#  Field Definitions
# ===================================

fields:
    viewBag[title]:
        span: left
        label: winter.pages::lang.editor.title
        placeholder: winter.pages::lang.editor.new_title
        attributes:
            default-focus: 1

    viewBag[url]:
        span: right
        placeholder: /
        label: winter.pages::lang.editor.url
        preset:
            field: viewBag[title]
            type: url
            prefixInput: input[data-parent-url]

    toolbar:
        type: partial
        path: page_toolbar
        cssClass: collapse-visible

tabs:
    cssClass: master-area

    icons:
        cms::lang.editor.settings: icon-cog

    fields:
        viewBag[layout]:
            tab: cms::lang.editor.settings
            label: winter.pages::lang.page.layout
            type: dropdown
            options: getLayoutOptions

        viewBag[is_hidden]:
            tab: cms::lang.editor.settings
            span: left
            label: winter.pages::lang.editor.hidden
            type: checkbox
            comment: winter.pages::lang.editor.hidden_comment

        viewBag[navigation_hidden]:
            tab: cms::lang.editor.settings
            span: right
            label: winter.pages::lang.editor.navigation_hidden
            type: checkbox
            comment: winter.pages::lang.editor.navigation_hidden_comment

        viewBag[meta_title]:
            tab: cms::lang.editor.meta
            label: cms::lang.editor.meta_title

        viewBag[meta_description]:
            tab: cms::lang.editor.meta
            label: cms::lang.editor.meta_description
            type: textarea
            size: tiny

secondaryTabs:
    stretch: true
    icons:
        winter.pages::lang.editor.content: icon-pencil
        winter.pages::lang.editor.preview: icon-crosshairs
    fields:
        markup:
            tab: winter.pages::lang.editor.content
            type: richeditor
            stretch: true
            size: huge
