/*
 * Author       : ccmehil
 * Generated on : 23-Nov-2009 03:25:15
 * Version      : 3.0
 */
application "Feature Roadmap"
{
    type = public
    allow html = true
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Feature_Request
    {
        displayname = "Feature Request"
        form  Add_A_Feature
        {
            displayname  =  "Add A Feature"
            
            must  have  unique  Name
            (
                type  =  text
            )

            Link
            (
                type  =  text
            )

            must  have  Submitted_By
            (
                displayname  =  "Submitted By"
                type  =  text
            )

            Submitted
            (
                type  =  date
            )

            Comments_Description
            (
                displayname  =  "Comments/Description"
                type  =  textarea
            )

            must  have  Zoho_App
            (
                displayname  =  "Zoho Application"
                type  =  radiobuttons
                values  =  {"Creator",   "Writer",   "Sheet"}
            )

            Type
            (
                type  =  radiobuttons
                values  =  {"Deluge Script",   "Form",   "View",   "Website Embed",   "Advanced"}
            )

            "215009"
            (
                type  =  plaintext
            )

            Zoho_Team_Comments_Response
            (
                displayname  =  "Zoho Team Comments/Response"
                type  =  textarea
            )

            Priority
            (
                type  =  number
                defaultvalue  =  0
            )

            Status
            (
                type  =  picklist
                values  =  {"Open",   "Closed",   "Rejected"}
            )

            Target_Release
            (
                displayname  =  "Released"
                type  =  date
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

    }

    section Roadmap
    {
        list  Add_A_Feature_view
        {
            displayname = "Add A Feature view"
            show  all  rows  from  Add_A_Feature 
            (
                Name
                Link
                Submitted
                Zoho_App as "Zoho Application"
                Type
                Priority
                Status
            )
            filters 
            (
                Submitted
                Zoho_App
                Type
                Status
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                edit = true
                delete = true
            )
        }

    }

    section Comments
    {
        form  Comments
        {
            
            must  have  Feature_Name
            (
                displayname  =  "Feature Name"
                type  =  picklist
                values  =  Add_A_Feature.Name
            )

            must  have  Commented_By
            (
                displayname  =  "Commented By"
                type  =  text
            )

            Comments
            (
                type  =  textarea
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  Comments_view
        {
            displayname = "Comments view"
            show  all  rows  from  Comments 
            (
                Feature_Name as "Feature Name"
                Commented_By as "Commented By"
                Comments
            )
            filters 
            (
                Feature_Name
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                edit = true
                delete = true
            )
        }

    }

}
