V4.fields = {
    select: "select",
    input: "input",
    textarea: "textarea",
    div: "div"
};

V4.fields.fromStep1 = {
    areaOfFeedback: {
        name:"areaOfFeedback",
        type: V4.fields.select,
        options: {
            programmesFlow : "programmes",
            onlineFlow : "online and apps",
            fourODFlow : "4od"
        }
    }
};

V4.fields.step3 = {
    caseNumber : {
        name : 'caseNumber',
        type: V4.fields.textarea
    },
    feedback : {
        name : 'feedback',
        type: V4.fields.textarea
    },
    makePublic:{
        name : 'makePublic',
        type: V4.fields.input
    },
    termsAndConditions:{
        className : 'termsAndConditions',
        type: V4.fields.span
    }
};

V4.fields.programmeFlow = {
    name: "programmes",

    typeOfFeedback : {
        name : 'typeOfFeedbackForProgramme',
        type : V4.fields.select,
        options : {
            technicalFaultOption : 'Report a technical fault',
            askAQuestionOption : 'Ask us a question',
            sendCommentOption : 'Send us a comment',
            sendPraiseOption : 'Send us praise',
            makeComplaintOption : 'Make a complaint'
        }
    },
    tvChannels : {
        name :'tvChannels',
        type: V4.fields.select
    },
    programmeTitles : {
        name : 'programmeTitles',
        type: V4.fields.select,
        options :{
            other : 'other'
        }
    },
    otherProgramme : {
        name : 'otherProgramme',
        type: V4.fields.input
    },
    transmissionDate : {
        name : 'transmissionDate',
        type: V4.fields.input
    },
    signal : {
        name : 'signal',
        type: V4.fields.textarea
    },
    detailProblem : {
        name : 'detailProblem',
        type: V4.fields.textarea
    }
};

V4.fields.fourODFlow = {
    name: "4od",
    fourODViewingOptions : {
        name : "fourODViewingOptions",
        type : V4.fields.select,
        options : {
            computer : "computer",
            tv : "tv",
            other : "other"
        }
    },
    operatingSystem : {
        name : "fourODOperatingSystem",
        type : V4.fields.select
    },
    browser: {
        name : "fourODBrowser",
        type : V4.fields.select
    },
    typeOfFeedback: {
        name: "typeOfFeedbackFor4OD",
        type : V4.fields.select,
        options : {
            technicalQuery : "technical query",
            pinReset : "pin reset"
        }
    },
    errorCode : {
        name : "errorCode",
        type : V4.fields.textarea
    },
    approximateTime : {
        name : "approxTime",
        type : V4.fields.input
    },
    webPageAddress : {
        name : "webPageAddress",
        type : V4.fields.input
    },
    otherInfo : {
        name : "otherInfo",
        type : V4.fields.textarea
    }
};

V4.fields.onlineFlow = {
    name: "online and apps",
    website : {
        name : "websiteName",
        type : V4.fields.select,
        options : {
            apps : "apps",
            e4 : "e4",
            film4 : "film4",
            channel4 : "channel4"
        }
    },
    platform : {
        name : "platform",
        type : V4.fields.input
    },
    typeOfDevice : {
        name : "typeOfDevice",
        type : V4.fields.input
    },
    operatingSystem : {
        name : "operatingSystem",
        type : V4.fields.input
    },
    typeOfFeedback : {
        name : "typeOfFeedbackForOnline",
        type : V4.fields.select,
        options : {
            registration : "registration",
            askAQuestion : "ask a question",
            accessibility : "accessibility"
        }

    },
    registration :{
        name: "registration",
        type: V4.fields.select,
        options : {
            other : "other"
        }
    },
    onlineLink : {
        name  : "onlineLink",
        type : V4.fields.input
    },
    registrationOther : {
        name  : "registrationOther",
        type : V4.fields.input
    }
};

