fields:
    _title:
        label: webula.smallbackup::lang.plugin.name
        comment: webula.smallbackup::lang.plugin.description
        type: section

    backup_folder:
        label: webula.smallbackup::lang.settings.backup_folder
        comment: webula.smallbackup::lang.settings.backup_folder_comment
        placeholder: storage/app/backup
        default: storage/app/backup
        span: left
        type: text

    cleanup_interval:
        label: webula.smallbackup::lang.settings.cleanup_interval
        span: right
        type: number
        step: 1
        min: 1
        max: 120
        default: 7

tabs:
    icons:
        webula.smallbackup::lang.settings.tabs.database: icon-database
        webula.smallbackup::lang.settings.tabs.theme: icon-picture-o
        webula.smallbackup::lang.settings.tabs.storage: icon-files-o
        webula.smallbackup::lang.settings.tabs.settings: icon-cogs

    fields:

        db_auto:
            label: webula.smallbackup::lang.settings.db_auto
            comment: webula.smallbackup::lang.settings.db_auto__comment
            type: switch
            span: left
            tab: webula.smallbackup::lang.settings.tabs.database

        db_excluded_tables:
            label: webula.smallbackup::lang.settings.db_excluded_tables
            comment: webula.smallbackup::lang.settings.db_excluded_tables__comment
            span: right
            type: taglist
            options: getTablesOptions
            customTags: false
            tab: webula.smallbackup::lang.settings.tabs.database

        db_use_compression:
            label: webula.smallbackup::lang.settings.db_use_compression
            span: left
            type: switch
            tab: webula.smallbackup::lang.settings.tabs.database

        _listing_db:
            type: partial
            path: $/webula/smallbackup/controllers/settings/_listing-db.htm
            tab: webula.smallbackup::lang.settings.tabs.database

        theme_auto:
            label: webula.smallbackup::lang.settings.theme_auto
            comment: webula.smallbackup::lang.settings.theme_auto__comment
            type: switch
            tab: webula.smallbackup::lang.settings.tabs.theme

        _listing_theme:
            type: partial
            path: $/webula/smallbackup/controllers/settings/_listing-theme.htm
            tab: webula.smallbackup::lang.settings.tabs.theme

        storage_auto:
            label: webula.smallbackup::lang.settings.storage_auto
            comment: webula.smallbackup::lang.settings.storage_auto__comment
            type: switch
            span: left
            tab: webula.smallbackup::lang.settings.tabs.storage

        storage_output:
            label: webula.smallbackup::lang.settings.storage_output
            comment: webula.smallbackup::lang.settings.storage_output__comment
            type: radio
            options:
                zip: webula.smallbackup::lang.settings.storage_output__zip
                tar_unsafe: webula.smallbackup::lang.settings.storage_output__tar_unsafe
                tar: webula.smallbackup::lang.settings.storage_output__tar
                tar_gz: webula.smallbackup::lang.settings.storage_output__tar_gz
                tar_bz2: webula.smallbackup::lang.settings.storage_output__tar_bz2
            default: tar
            span: right
            tab: webula.smallbackup::lang.settings.tabs.storage

        storage_excluded_resources:
            label: webula.smallbackup::lang.settings.storage_excluded_resources
            span: full
            type: taglist
            options: getResourcesOptions
            customTags: false
            tab: webula.smallbackup::lang.settings.tabs.storage

        _listing_storage:
            type: partial
            path: $/webula/smallbackup/controllers/settings/_listing-storage.htm
            tab: webula.smallbackup::lang.settings.tabs.storage

        db_custom_mapping:
            label: webula.smallbackup::lang.settings.db_custom_mapping
            comment: webula.smallbackup::lang.settings.db_custom_mapping__comment
            type: repeater
            prompt: webula.smallbackup::lang.settings.db_custom_mapping__prompt
            form:
                fields:
                    db_type:
                        label: webula.smallbackup::lang.settings.db_custom_mapping__db_type
                        comment: webula.smallbackup::lang.settings.db_custom_mapping__db_type__comment
                        type: text
                        span: left
                    doctrine_type:
                        label: webula.smallbackup::lang.settings.db_custom_mapping__doctrine_type
                        comment: webula.smallbackup::lang.settings.db_custom_mapping__doctrine_type__comment
                        type: text
                        span: right
            span: full
            tab: webula.smallbackup::lang.settings.tabs.settings
