# You must use a tab-size of 4 spaces to edit this file.
---
site_settings:
    setting_group: zenario_location_manager__site_settings_group
    title: Editing settings for Locations
    tabs:
        zenario_location_manager__site_settings:
            edit_mode:
                enabled: Yes
                priv: _PRIV_EDIT_SITE_SETTING
                on: No
            label: Details
            fields:
                external_id_grouping:
                    type: grouping
                
                #If the Company Locations Manager module is running, it will insert a field here.
                #This field will be in the external_id_grouping.
                
                zenario_location_manager__enable_external_id:
                    grouping: external_id_grouping
                    ord: external_id_grouping + 0.2
                    label: 'Enable external number for locations'
                    site_setting:
                        name: zenario_location_manager__enable_external_id
                    type: checkbox
                
                zenario_location_manager__enable_pending_status:
                    label: 'Enable pending status for locations'
                    site_setting:
                        name: zenario_location_manager__enable_pending_status
                    type: checkbox
                    side_note: |
                        When the pending status is enabled, any new locations will be created as pending first instead of active.
                        You can also manually change a locations status to and from pending in the locations organizer panel.
                zenario_location_manager__hierarchy_levels:
                    label: 'Number of levels allowed in a location hierarchy:'
                    site_setting:
                        name: zenario_location_manager__hierarchy_levels
                    type: select
                    values:
                        0:
                            label: No hierarchy
                            ord: 0
                        2:
                            label: "2"
                            ord: 2
                        3:
                            label: "3"
                            ord: 3
                        4:
                            label: "4"
                            ord: 4
                        5:
                            label: "5"
                            ord: 5
                        6:
                            label: "6"
                            ord: 6
                        7:
                            label: "7"
                            ord: 7
                        8:
                            label: "8"
                            ord: 8
                        9:
                            label: "9"
                            ord: 9
                        10:
                            label: "10"
                            ord: 10
                        999:
                            label: Unlimited
                            ord: 999
                    validation:
                        numeric: Number of levels in the Location hierarchy must be a number.
                zenario_location_manager__sector_management:
                    label: 'Sector management for locations:'
                    type: radios
                    site_setting:
                        name: zenario_location_manager__sector_management
                    values:
                        1: Do not use sectors
                        0: Quick sector management
                        2: Sector score management
                    value: 1
                    side_note: |
                        <p>Quick sector management adds a Sectors tab to the locations admin box on which you can add/remove sectors from a location via a hierarchical list of checkboxes.</p>
                        <p>Sector score management adds a button to a location's selected toolbar that enables access to a panel where you can add/remove sectors from the location and administer the sector score.</p>
                
                zenario_location_manager__default_pin_placement_method:
                    label: 'Default pin placement method for locations:'
                    type: radios
                    site_setting:
                        name: zenario_location_manager__default_pin_placement_method
                    values: {}
                
        filesizes:
            label: File Sizes
            edit_mode:
                enabled: Yes
                priv: _PRIV_EDIT_SITE_SETTING
                on: No
            fields:
                description:
                    full_width: Yes
                    snippet:
                        html: This tab contains settings for file uploads.
                location_image_options:
                    type: grouping
                    snippet:
                        label: "Maximum file size for location-related images:"
                        label_class: subheading
                max_location_image_filesize_override:
                    grouping: location_image_options
                    site_setting:
                        name: max_location_image_filesize_override
                    label: "Restrict images to..."
                    type: checkbox
                    value: false
                    redraw_onchange: true
                max_location_image_filesize:
                    grouping: location_image_options
                    indent: 1
                    site_setting:
                        name: max_location_image_filesize
                    label: 'New maximum location image file size:'
                    type: text
                    value: 50
                    validation:
                        required_if_not_hidden: Please enter a maximum location image file size.
                        numeric: The maximum user image file size must be numeric.
                    decimal_places: ""
                    maxlength: 10
                    style: "width: 7em;"
                    visible_if: lib.value('max_location_image_filesize_override')
                max_location_image_filesize_unit:
                    grouping: location_image_options
                    indent: 1
                    site_setting:
                        name: max_location_image_filesize_unit
                    label: 'Unit:'
                    same_row: true
                    type: select
                    values:
                        KB:
                            label: KB
                        MB:
                            label: MB
                    value: KB
                    validation:
                        required_if_not_hidden: Please select the unit.
                    redraw_onchange: true
                    visible_if: lib.value('max_location_image_filesize_override')
                apply_file_size_limit_to:
                    grouping: location_image_options
                    indent: 1
                    site_setting:
                        name: apply_file_size_limit_to
                    type: select
                    values:
                        uploads_by_users:
                            ord: 1
                            label: 'Apply only to uploads by users'
                        always_apply:
                            ord: 2
                            label: 'Apply always'
                    value: uploads_by_users
                    visible_if: lib.value('max_location_image_filesize_override')
                global_upload_setting_info:
                    grouping: location_image_options
                    snippet:
                        html: |
                            <div class="zenario_fbInfo">
                                [[global_upload_setting_string]]
                            </div>