/*
 * Author       : piledriver
 * Generated on : 24-Nov-2009 13:28:23
 * Version      : 3.0
 */
application "Thank You Sue"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  Thank_You_Sue
        {
            displayname  =  "Thank You Sue"
            captcha = true
            success message  =  "You message has been added!  Thank you for your support."
            
            must  have  Name_Optional
            (
                displayname  =  "Name"
                type  =  text
            )

            must  have  Email_Optional
            (
                displayname  =  "Email"
                type  =  email
            )

            must  have  What_you_find_irritating_inefficient_about_the_product
            (
                displayname  =  "Thank You, Sue:"
                type  =  textarea
            )

            plain
            (
                type  =  plaintext
                value = "<span style=\"color: rgb(204, 0, 0);\">*</span> <span style=\"font-family: arial,helvetica,sans-serif;\">Required field</span><br>\n"
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                        on success
                        {
                            sendmail
                            (
                                To       :  "scottpierce@mac.com" 
                                From     :  zoho.adminuserid 
                                Subject  :  "Another Thank You, Sue Message" 
                                Message  :  input.formdata 
                            )
                        }
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  Thank_You_Sue_View
        {
            displayname = "Thank You Sue View"
            show  all  rows  from  Thank_You_Sue 
            (
                Name_Optional as "Name (Optional)"
                Email_Optional as "Email (Optional)"
                Added_Time as "Added Time"
                What_you_find_irritating_inefficient_about_the_product as "Thank you for:"
                ID
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                delete = true
            )
        }

        list  Thank_You_Sue_Site
        {
            displayname = "Thank You Sue Site"
            show  all  rows  from  Thank_You_Sue 
            (
                Name_Optional as "Name"
                Email_Optional as "Email"
                What_you_find_irritating_inefficient_about_the_product as "Thank You, Sue:"
            )
            options
            (
                display rows = 200
            )
            permission
            (
                add = true
                duplicate = true
                edit = true
                bulk edit = true
                delete = true
            )
        }

        list  Thank_You_Sue_Results
        {
            displayname = "Thank You Sue Results"
            show  all  rows  from  Thank_You_Sue 
            (
                Name_Optional as "Name"
                Email_Optional as "Email"
                What_you_find_irritating_inefficient_about_the_product as "Thank You, Sue:"
            )
            options
            (
                display rows = 200
            )
            permission
            (
                add = true
                duplicate = true
                edit = true
                bulk edit = true
                delete = true
            )
        }

        grid  Comments_So_Far
        {
            displayname = "Comments So Far"
            show  all  rows  from  Thank_You_Sue 
            (
                Name_Optional as "Name"
                Email_Optional as "Email"
                What_you_find_irritating_inefficient_about_the_product as "Thank You, Sue:"
            )
            options
            (
                display rows = 200
            )
            permission
            (
                add = true
                duplicate = true
                edit = true
                bulk edit = true
                delete = true
            )
        }

        summary  Copy_of_Thank_You_Sue_Results
        {
            displayname = "Copy of Thank You Sue Results"
            show  all  rows  from  Thank_You_Sue 
            (
                Name_Optional as "Name"
                Email_Optional as "Email"
                What_you_find_irritating_inefficient_about_the_product as "Thank You, Sue:"
            )
            options
            (
                display rows = 200
            )
            permission
            (
                add = true
                duplicate = true
                edit = true
                bulk edit = true
                delete = true
            )
        }

    }

}
