# You must use a tab-size of 4 spaces to edit this file.
---
zenario__administration:
    panels:
        file_types:
            priv: _PRIV_VIEW_SITE_SETTING
            title: File/MIME Types
            db_items:
                table: '[[DB_PREFIX]]document_types AS dt'
                id_column: dt.type
                encode_id_column: true
            columns:
                type:
                    title: Extension
                    db_column: dt.type
                    show_by_default: true
                    searchable: true
                    width: small
                mime_type:
                    title: MIME type
                    db_column: dt.mime_type
                    show_by_default: true
                    searchable: true
                    width: xxlarge
                is_allowed:
                    title: Allowed for document creation
                    db_column: dt.is_allowed
                    format: yes_or_no
                    yes_phrase: Allowed
                    no_phrase: Disallowed
                    show_by_default: true
                    width: xlarge
                custom:
                    title: Definition
                    db_column: dt.custom
                    format: yes_or_no
                    yes_phrase: Custom
                    no_phrase: System-defined
                    show_by_default: true
            default_sort_column: type
            item:
                name: File type
                names: File types
                css_class: dropbox_file
            collection_buttons:
                create:
                    priv: _PRIV_EDIT_CONTENT_TYPE
                    tooltip: Define a new file type
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    label: Create
                    admin_box:
                        path: zenario_file_type
                        create_another: true
                help:
                    label: Help
                    help:
                        message: >
                            When an administrator or a user uploads a file to the server,
                            it will be rejected unless its extension matches one of the
                            extensions in this panel.
                            
                            
                            It will also be rejected if its contents do not match the MIME type
                            listed for the extension listed in this panel.
                            
                            
                            Click the "Create" button to define new file types; you will
                            need to specify the filename extension and its MIME type.
            item_buttons:
                allow:
                    priv: _PRIV_EDIT_CONTENT_TYPE
                    multiple_select: true
                    label: Allow
                    tooltip: Allow this type of file when uploading or creating documents.
                    multiple_select_tooltip: Allow these types of files when uploading or creating documents.
                    ajax:
                        request:
                            allow: 1
                    one_without_columns_set:
                        is_allowed: true
                disallow:
                    priv: _PRIV_EDIT_CONTENT_TYPE
                    multiple_select: true
                    label: Disallow
                    tooltip: Disallow this type of file when uploading or creating documents.
                    multiple_select_tooltip: Disallow these types of files when uploading or creating documents.
                    ajax:
                        request:
                            disallow: 1
                    one_with_columns_set:
                        is_allowed: true
                delete:
                    priv: _PRIV_EDIT_CONTENT_TYPE
                    multiple_select: true
                    multiple_select_tooltip: Delete custom file types
                    label: Delete
                    ajax:
                        request:
                            delete: 1
                        confirm:
                            message: 'Are you sure you wish to delete the custom type "[[type]]"?'
                            multiple_select_message: Are you sure you wish to delete the selected custom types?
                            button_message: Delete
                            cancel_button_message: Cancel
                            message_type: warning
                    with_columns_set:
                        custom: true
