models/defaultFields.js

/**
 * Default field settings
 * @module app/models/default
 */
define([], function() {

    return [{
        key: '10',
        value: '',
        defaultText: '',
        label: 'Text',
        sub_group: false,
        panel_class: 'primary',
        panel_title: '',
        panel_badge: '',
        panel_expanded: false,
        hint: '',
        options: [],
        required: false,
        score: false,
        childFields: [],
        validation: false,
        showNumbering: true,
        single_line: true,
        read_only: false,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_changed: false,
        bg_changed: false,
        fg_class: '',
        bg_class: '',
        max_chars: undefined,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'A free text field. Allow to say should only be one line'
    }, {
        key: '20',
        value: '',
        label: 'Numeric',
        hint: '',
        number_type: 'integer',
        options: [],
        required: false,
        score: false,
        childFields: [],
        validation: false,
        showNumbering: false,
        read_only: false,
        min: undefined,
        max: undefined,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_changed: false,
        bg_changed: false,
        fg_class: '',
        bg_class: '',
        prefix_text: '',
        suffix_text: '',
        step: 1,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'Accept numbers only'
    }, {
        key: '30',
        value: {
            name: '',
            street: '',
            street_one: '',
            town: '',
            country: '',
            postcode: ''
        },
        label: 'Address',
        hint: '',
        options: [],
        type: '',
        required: false,
        score: false,
        childFields: [],
        validation: false,
        showNumbering: false,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_class: '',
        bg_class: '',
        fg_changed: false,
        bg_changed: false,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'An input display to handle adding and vetting a UK postal address'
    }, {
        key: '40',
        value: null,
        label: 'Question',
        hint: '',
        options: [],
        optionsValueType: 1,
        required: false,
        score: false,
        childFields: [],
        prefix_text: '',
        suffix_text: '',
        validation: false,
        showNumbering: false,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_class: '',
        bg_class: '',
        fg_changed: false,
        bg_changed: false,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'Displays the two choices, ‘yes’ and ‘no’. Allows a default to be pre-selected'
    }, {
        key: '50',
        value: [1, 2],
        label: 'Selection',
        hint: '',
        options: [{
            text: 'Choice 1',
            value: 1
        }, {
            text: 'Choice 2',
            value: 2
        }],
        required: false,
        score: false,
        childFields: [],
        validation: false,
        showNumbering: false,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_class: '',
        bg_class: '',
        fg_changed: false,
        bg_changed: false,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'Similar to the above, but will allow multiple choices.'
    }, {
        key: '60',
        value: '',
        label: 'Images',
        hint: '',
        options: [],
        required: false,
        score: false,
        childFields: [],
        validation: false,
        showNumbering: false,
        width: null,
        height: null,
        unit: 'px',
        canEdit: false,
        max_images: 5,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_class: '',
        bg_class: '',
        fg_changed: false,
        bg_changed: false,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'An option to upload images/take photos.'
    }, {
        key: '70',
        value: '',
        label: 'File uploads',
        hint: '',
        options: [],
        required: false,
        score: false,
        childFields: [],
        validation: false,
        showNumbering: false,
        foreground: '',
        background: '',
        foreground_color_change: false,
        background_color_change: false,
        fg_class: '',
        bg_class: '',
        fg_changed: false,
        bg_changed: false,
        parent: null,
        parents: [],
        template_block_name: '',
        template_block_tag: [],
        repeated: false,
        description: 'Similar to the images, valid file types can be specified.'
    }];
});