# You must use a tab-size of 4 spaces to edit this file.
---
zenario__administration:
    panels:
        tuix_snippets:
            priv: _PRIV_EDIT_SITE_SETTING
            item:
                css_class: tuix_snippets
            title: TUIX snippets
            no_items_message: No TUIX snippets have been created on this site
            db_items:
                table: '[[DB_PREFIX]]tuix_snippets AS ts'
                id_column: ts.id
            default_sort_column: name
            columns:
                name:
                    title: Name
                    db_column: ts.name
                    width: xlarge
                    show_by_default: true
                    searchable: true
                custom_json:
                    db_column: ts.custom_json
                num_columns:
                    title: Columns defined
                    show_by_default: true
                    align_right: true
                    empty_value: None
                    #width: large
                num_collection_buttons:
                    title: Collection buttons defined
                    show_by_default: true
                    align_right: true
                    empty_value: None
                    width: large
                num_item_buttons:
                    title: Item buttons defined
                    show_by_default: true
                    align_right: true
                    empty_value: None
                    width: large
                usage:
                    title: Plugin usage
                    show_by_default: true
                    align_right: true
                    empty_value: None
                    db_column: |
                        COUNT(DISTINCT ps.instance_id, ps.egg_id)
                    table_join: |
                        LEFT JOIN [[DB_PREFIX]]plugin_settings AS ps
                           ON ps.name = '~tuix_snippet~'
                          AND ps.value = ts.id
            #item:
            #    css_class: page_preview_size
            collection_buttons:
                create:
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    label: Create a new TUIX Snippet
                    admin_box:
                        path: zenario_tuix_snippet
                        create_another: true
            item_buttons:
                edit:
                    label: Edit
                    admin_box:
                        path: zenario_tuix_snippet
                delete:
                    label: Delete
                    hide_in_select_mode: true
                    multiple_select: true
                    ajax:
                        confirm:
                            message: 'Are you sure you want to delete the TUIX Snippet "[[name]]"?'
                            multiple_select_message: 'Are you sure you want to delete these TUIX Snippets?'
                            button_message: Delete
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            delete: 1
            
            notice:
                show: false
                type: information
                message: |
                    This panel is empty.
                    This is because the site has no FEA-type (Front End Administration) plugins,
                    i.e. modules containing a <code>tuix/visitor/</code> directory.
                html: true
