# You must use a tab-size of 4 spaces to edit this file.
---
zenario__library:
    nav:
        zenario_settings_pro_features__spare_aliases:
            ord: 5
            visible_if: >
                zenarioA.siteSettings.default_language
            #css_class: alias_urls_collection
            name: Spare aliases (301s)
            tooltip: Manage spare aliases (301 redirects)
            link:
                path: zenario__library/panels/zenario_settings_pro_features__spare_aliases
    panels:
        zenario_settings_pro_features__spare_aliases:
            title: Spare aliases (permanent/301 redirects)
            no_items_message: There are no spare aliases (permanent/301 redirects).
            db_items:
                table: '[[DB_PREFIX]]spare_aliases AS sa'
                id_column: sa.alias
            columns:
                alias:
                    title: Spare alias
                    db_column: sa.alias
                    searchable: true
                    always_show: true
                content_item:
                    title: Redirect to content item
                    always_show: true
                    db_column: "CONCAT(sa.content_type, '_', sa.content_id)"
                    item_link: content_item
                ext_url:
                    title: Redirect to external URL
                    always_show: true
                    db_column: sa.ext_url
                    item_link: content_item_or_url
                created_datetime:
                    title: When created
                    always_show: true
                    db_column: sa.created_datetime
                    format: datetime
            default_sort_column: alias
            item:
                css_class: alias_url
            collection_buttons:
                create:
                    priv: _PRIV_PUBLISH_CONTENT_ITEM
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    label: Create a spare alias
                    admin_box:
                        path: zenario_pro_features_spare_alias
                        create_another: true
                export:
                    label: Export
                    hide_in_select_mode: true
                    admin_box:
                        path: zenario_export_spare_aliases
            item_buttons:
                edit:
                    priv: _PRIV_PUBLISH_CONTENT_ITEM
                    label: Edit spare alias
                    admin_box:
                        path: zenario_pro_features_spare_alias
                delete:
                    priv: _PRIV_PUBLISH_CONTENT_ITEM
                    label: Delete
                    multiple_select: true
                    hide_in_select_mode: true
                    ajax:
                        confirm:
                            message: |
                                Are you sure that you wish to remove the spare alias "[[alias]]"?
                                
                                No content items will be deleted.
                            multiple_select_message: |
                                Are you sure that you wish to delete the selected spare aliases?
                                
                                No content items will be deleted.
                            button_message: Delete
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            delete: "1"
