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

fields:

    hint:
        type: hint
        path: ~/modules/cms/models/maintenancesetting/_hint.htm

    is_enabled:
        label: cms::lang.maintenance.is_enabled
        comment: cms::lang.maintenance.is_enabled_comment
        type: checkbox

    cms_page:
        type: dropdown
        cssClass: checkbox-align

    allowed_ips:
        label: cms::lang.maintenance.allowed_ips.name
        type: repeater
        commentAbove: cms::lang.maintenance.allowed_ips.description
        prompt: cms::lang.maintenance.allowed_ips.prompt
        cssClass: checkbox-align
        form:
            fields:
                ip:
                    label: cms::lang.maintenance.allowed_ips.ip
                    type: text
                    span: left
                label:
                    label: cms::lang.maintenance.allowed_ips.label
                    type: text
                    span: right
