# You must use a tab-size of 4 spaces to edit this file.
---
zenario__layouts:
    panels:
        skins:
            title: Skins
            db_items:
                table: >
                    [[DB_PREFIX]]skins AS s
                id_column: s.id
            no_items_message: There are no Skins.
            panel_type: multi_line_list
            use_tall_rows: true
            default_sort_column: path
            label_format_for_grid_view: '[[display_name]]'
            columns:
                name:
                    title: Directory Name
                    db_column: s.name
                    searchable: true
                    hidden: true
                display_name:
                    title: Skin name
                    db_column: s.display_name
                    always_show: true
                    searchable: true
                path:
                    title: Path
                    db_column: "CONCAT('[[CMS_ROOT]]zenario_custom/skins/', s.name, '/')"
                    show_by_default: true
                    width: xxlarge
                missing:
                    title: Missing
                    hidden: true
                    db_column: s.missing
                    parent: yes_or_no
                
                usage_layouts:
                    title: Usage in Layouts
                    db_column: |
                        (
                            SELECT COUNT(*)
                            FROM [[DB_PREFIX]]layouts AS stc
                            WHERE stc.skin_id = s.id
                        )
                    align_right: true
                    always_show: true
                    parent: display_name
                status:
                    title: Status
                    show_by_default: true
                    width: xlarge
                extension_of_skin:
                    db_column: s.extension_of_skin
                    hidden: true
                extensions:
                    title: Extensions
                    show_by_default: true
                    html: true
                extension_of_skin_display_name:
                    #This column is used in the DB lookup in case the current skin extends another one.
                    title: Extension of Skin
                    hidden: true
                extended_by_skins:
                    #This column is used in the DB lookup in case one or more other skins extend this one.
                    title: Extended by Skins
                    hidden: true
            
            collection_buttons:
                help:
                    label: Help
                    help:
                        message: |
                            Every layout uses a skin. Skins define the look and feel of layouts: the colour scheme, animations, margins, etc.
                            
                            This panel lists the skins that are available on your site. It shows a count of layouts that use a particular skin, as well as warnings if skin files are missing from the filesystem.
            
            item:
                css_class: skin
                tooltip_when_link_is_active: 'View files in Skin &quot;[[name]]&quot;'
                link:
                    path: zenario__layouts/panels/skin_files
                    refiner: skin
            inline_buttons:
                missing_skin:
                    css_class: zenario_ib_warning
                   # tooltip: |
                    #    The Skin is missing!
                    visible_if: >
                        item.missing
            item_buttons:
                action_dropdown:
                    label: Actions
                    multiple_select: true
                    hide_when_children_are_not_visible: true