# ===================================
#  Form Field Definitions
# ===================================

fields:
    fileName:
        label: cms::lang.editor.filename
        attributes:
            default-focus: 1
            spellcheck: 'false'

    toolbar:
        type: partial
        path: $/winter/builder/behaviors/indexmodellistoperations/partials/_toolbar.htm
        cssClass: collapse-visible

tabs:
    stretch: true
    cssClass: master-area
    fields:
        columns:
            stretch: true
            cssClass: frameless
            tab: winter.builder::lang.list.tab_columns
            type: datatable
            btnAddRowLabel: winter.builder::lang.list.btn_add_column
            btnDeleteRowLabel: winter.builder::lang.list.btn_delete_column
            columns:
                field: 
                    title: winter.builder::lang.list.column_dbfield_label
                    type: autocomplete
                    fillFrom: model-fields
                    validation: 
                        required: 
                            message: winter.builder::lang.list.column_dbfield_required
                label:
                    title: winter.builder::lang.list.column_name_label
                    type: builderLocalization
                    validation: 
                        required: 
                            message: winter.builder::lang.list.column_label_required
                type:
                    title: winter.builder::lang.list.column_type_label
                    validation: 
                        required: 
                            message: winter.builder::lang.list.column_type_required
                    type: dropdown
                    options: 
                        text: winter.builder::lang.list.column_type_text
                        number: winter.builder::lang.list.column_type_number
                        image: winter.builder::lang.list.column_type_image
                        switch: winter.builder::lang.list.column_type_switch
                        datetime: winter.builder::lang.list.column_type_datetime
                        date: winter.builder::lang.list.column_type_date
                        time: winter.builder::lang.list.column_type_time
                        timesince: winter.builder::lang.list.column_type_timesince
                        timetense: winter.builder::lang.list.column_type_timetense
                        select: winter.builder::lang.list.column_type_select
                        partial: winter.builder::lang.list.column_type_partial
                default:
                    title: winter.builder::lang.list.column_label_default
                    type: builderLocalization
                searchable:
                    title: winter.builder::lang.list.column_label_searchable
                    type: checkbox
                    width: 80px
                invisible:
                    title: winter.builder::lang.list.column_label_invisible
                    type: checkbox
                sortable:
                    title: winter.builder::lang.list.column_label_sortable
                    type: checkbox
                    default: true
                    width: 60px
                select:
                    title: winter.builder::lang.list.column_label_select
                relation: 
                    title: winter.builder::lang.list.column_label_relation
                cssClass:
                    title: winter.builder::lang.list.column_label_css_class
                width:
                    title: winter.builder::lang.list.column_label_width
                    width: 80px
                path:
                    title: winter.builder::lang.list.column_label_path
                format:
                    title: winter.builder::lang.list.column_label_format
                valueFrom:
                    title: winter.builder::lang.list.column_label_value_from
