# You must use a tab-size of 4 spaces to edit this file.
---
zenario__modules:
    panels:
        plugins:
            priv: _PRIV_VIEW_SLOT
            columns:
                contents:
                    width: xlarge
                    title: Contents
                    always_show: true
                    only_show_on_refiner:
                        nests: true
                        slideshows: true
            item_buttons:
                # Have two different buttons that both go to the nested plugins panel.
                # (There are two buttons because I want a different label for plugins/slideshows)
                plugins_in_nest:
                    priv: _PRIV_VIEW_REUSABLE_PLUGIN
                    ord: edit + 0.1
                    visible_if: |
                        item.module_class_name == 'zenario_nest' || 
                        item.module_class_name == 'zenario_abstract_nest'
                    label: Edit nest's plugins
                    hide_in_select_mode: true
                    link:
                        path: zenario__modules/panels/nested_plugins
                        refiner: nest
                
                images_in_slideshow:
                    priv: _PRIV_VIEW_REUSABLE_PLUGIN
                    ord: edit + 0.2
                    visible_if: |
                        item.module_class_name == 'zenario_slideshow'
                    label: Edit slideshow's images
                    hide_in_select_mode: true
                    link:
                        path: zenario__modules/panels/images_in_slideshow
                        refiner: nest
                
                copy:
                    parent: action_dropdown
                    priv: _PRIV_MANAGE_REUSABLE_PLUGIN
                    with_columns_set:
                        nestable: true
                    label: Copy plugin
                    tooltip: Use this to copy a plugin into a nest or slideshow
                    multiple_select: true
                    multiple_select_label: Copy plugins
                    multiple_select_tooltip: Use this to copy plugins into a nest or slideshow
                    ajax:
                        request:
                            copy: 1
                
                convert:
                    parent: action_dropdown
                    priv: _PRIV_MANAGE_REUSABLE_PLUGIN
                    visible_if: |
                        zenarioA.running.zenario_nest &&
                        zenarioA.running.zenario_ajax_nest &&
                        item.module_class_name == 'zenario_nest' || item.module_class_name == 'zenario_ajax_nest'
                    label: Convert nest...
                    tooltip: Use this to convert a nest between the Nest module and the Ajax Nest module.
                    admin_box:
                        path: zenario_convert_nest

