# You must use a tab-size of 4 spaces to edit this file.
---
zenario_content:
    tabs:
        zenario_ctype_event__when_and_where:
            ord: 24
            label: 'When & Where'
            edit_mode:
                enabled: ""
            visible_if: "zenarioAB.tuix.key.cType == 'event'"
            fields:
                desc:
                    snippet:
                        html: Use this screen to set dates, times and a location.
                    full_width: Yes
                start_date:
                    label: 'Start date:'
                    type: date
                    format_onchange: Yes
                    last_value: ""
                end_date:
                    label: 'End date:'
                    type: date
                    side_note: Set this if it's a multi-day event, otherwise leave it the same as the start date.
                specify_time:
                    label: 'Specify a time'
                    type: checkbox
                    side_note: Set this if you want to show the start and end time of the event, as well as the date.
                    format_onchange: Yes
                start_time_hours:
                    indent: 1
                    hidden: Yes
                    label: 'Start time:'
                    pre_field_html: '&nbsp;Hours:&nbsp;'
                    type: select
                    values:
                        00: "00"
                        01: "01"
                        02: "02"
                        03: "03"
                        04: "04"
                        05: "05"
                        06: "06"
                        07: "07"
                        08: "08"
                        09: "09"
                        10: "10"
                        11: "11"
                        12: "12"
                        13: "13"
                        14: "14"
                        15: "15"
                        16: "16"
                        17: "17"
                        18: "18"
                        19: "19"
                        20: "20"
                        21: "21"
                        22: "22"
                        23: "23"
                    last_value: ""
                    format_onchange: true
                start_time_minutes:
                    hidden: Yes
                    same_row: Yes
                    pre_field_html: '&nbsp;Minutes:&nbsp;'
                    type: select
                    values:
                        00: "00"
                        05: "05"
                        10: "10"
                        15: "15"
                        20: "20"
                        25: "25"
                        30: "30"
                        35: "35"
                        40: "40"
                        45: "45"
                        50: "50"
                        55: "55"
                        59: "59"
                    last_value: ""
                    format_onchange: true
                end_time_hours:
                    indent: 1
                    hidden: Yes
                    label: 'End time:'
                    pre_field_html: '&nbsp;Hours:&nbsp;'
                    type: select
                    values:
                        00: "00"
                        01: "01"
                        02: "02"
                        03: "03"
                        04: "04"
                        05: "05"
                        06: "06"
                        07: "07"
                        08: "08"
                        09: "09"
                        10: "10"
                        11: "11"
                        12: "12"
                        13: "13"
                        14: "14"
                        15: "15"
                        16: "16"
                        17: "17"
                        18: "18"
                        19: "19"
                        20: "20"
                        21: "21"
                        22: "22"
                        23: "23"
                end_time_minutes:
                    hidden: Yes
                    same_row: Yes
                    pre_field_html: '&nbsp;Minutes:&nbsp;'
                    type: select
                    values:
                        00: "00"
                        05: "05"
                        10: "10"
                        15: "15"
                        20: "20"
                        25: "25"
                        30: "30"
                        35: "35"
                        40: "40"
                        45: "45"
                        50: "50"
                        55: "55"
                        59: "59"
                late_evening_event:
                    indent: 1
                    label: '+1 day'
                    type: checkbox
                    side_note: Check this if your event runs past midnight and the end time is next day.
                    same_row: true
                event_timezone:
                    indent: 1
                    type: radios
                    label: 'Event timezone:'
                    value: default_timezone
                    values:
                        default_timezone:
                            ord: 1
                            label: Default timezone ([[default_timezone]])
                        other_timezone:
                            ord: 2
                            label: Other timezone...
                    visible_if: lib.value('specify_time')
                    redraw_onchange: Yes
                    notices_below:
                        enable_timezone_support:
                            hidden: true
                            type: information
                            message: ''
                            html: true
                event_other_timezone:
                    indent: 2
                    type: select
                    values: []
                    empty_value:  — Select event timezone — 
                    visible_if: lib.value('specify_time') && (lib.value('event_timezone') == 'other_timezone')
                    validation:
                        required_if_not_hidden: 'Please select a timezone.'
                
                locations_snippet:
                    snippet:
                        html: |
                            <span class="title">Where it's on:</span>
                online:
                    ord: 100
                    label: 'Online'
                    type: checkbox
                at_location_checkbox:
                    ord: 101
                    label: 'At a physical location'
                    type: checkbox
                    redraw_onchange: true
                at_physical_location:
                    ord: 102
                    indent: 1
                    type: select
                    redraw_onchange: true
                    values:
                        location_picker:
                            label: 'Location in database'
                        address_text:
                            label: 'Address not in database'
                    visible_if: lib.value('at_location_checkbox')
                    validation:
                        required_if_not_hidden: 'Please select one of the options.'
                    value: address_text
                    notices_below:
                        enable_address_text:
                            hidden: true
                            type: information
                            message: ''
                            html: true
                location_id:
                    ord: 103
                    indent: 2
                    label: 'Location:'
                    pick_items:
                        path: zenario__locations/panel
                        target_path: zenario__locations/panel
                        min_path: zenario__locations/panel
                        nothing_selected_phrase: No location selected
                        select_phrase: Select a location...
                    visible_if: lib.value('at_location_checkbox') && lib.value('at_physical_location') == 'location_picker'
                    validation:
                        required_if_not_hidden: 'Please select a location.'
                location:
                    ord: 104
                    indent: 2
                    label: 'Enter the address:'
                    type: text
                    maxlength: 250
                    visible_if: lib.value('at_location_checkbox') && lib.value('at_physical_location') == 'address_text'
                    validation:
                        required_if_not_hidden: 'Please enter an address.'
                
                #If the Conference Manager module is running, an event may be linked to a conference.
                #The relevant fields will be in this grouping.
                conference_grouping:
                    ord: 105
                    type: grouping
                
                url:
                    ord: 106
                    label: 'URL for further info:'
                    type: text
                    side_note: >
                        To enter the URL of an external page, start the URL with http:// or https://
                    onclick: "if ($(this).val()=='') {$(this).val('http://')}"
                url_test:
                    ord: 107
                    same_row: Yes
                    type: button
                    css_class: zenario_gp_button
                    value: Test
                    onclick: "if ($(lib.get('url')).val()!='') {window.open($(lib.get('url')).val())}"
