/*
 * Author       : brendancooper
 * Generated on : 22-Nov-2009 23:09:30
 * Version      : 3.0
 */
application "Brendan Cooper's Social Media Resource"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  Input
        {
            displayname  =  "Brendan's Social Media Resource - Data Input"
            captcha = true
            success message  =  "Thanks for contributing! Regards, Brendan Cooper (brendancooper.com)"
            
            Activity
            (
                displayname  =  "PR Activity"
                type  =  list
                values  =  {"Promotion",   "Corporate Social Responsibility (CSR)",   "Research",   "Interviews",   "Speeches",   "Ongoing campaign",   "Conference briefings/support",   "Collaboration",   "Brainstorming",   "Announcements",   "Trend analysis",   "News tracking",   "Campaign measurement",   "Crisis management",   "Pitch/outreach",   "Viral",   "Media relations",   "Blogger relations",   "Customer relations",   "Product development",   "Customer support"}
                sortorder = ascending
            )

            Resource
            (
                displayname  =  "Tool type"
                type  =  list
                values  =  {"Blog indexes",   "Online documents",   "Buzz monitoring",   "Mapping",   "Microblogging",   "Blogs",   "Forums",   "Message boards",   "News searches",   "Blog searches",   "Online radio",   "Online databases",   "Picture sharing",   "Podcasts",   "Social networks",   "Virtual worlds",   "Wikis",   "Social Media Press Release",   "RSS",   "Video sharing",   "Social bookmarking",   "Customer Relationship Management"}
                sortorder = ascending
            )

            Tool
            (
                displayname  =  "Tool name"
                type  =  url
                enable   linkname
            )

            must  have  Description
            (
                type  =  textarea
            )

            Link
            (
                type  =  url
                enable   linkname
            )

            must  have  Theory_proof
            (
                displayname  =  "Theory/proof?"
                type  =  radiobuttons
                values  =  {"Theory",   "Proof"}
            )

            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  Brendan_Cooper_s_Social_Media_Resource_Data_View
        {
            displayname = "Brendan Cooper's Social Media Resource - Data View"
            show  all  rows  from  Input 
            (
                Activity as "PR Activity"
                Resource as "Tool type"
                Tool as "Tool name"
                Description
                Link as "More info"
                Theory_proof as "Theory/proof?"
            )
            filters 
            (
                Activity
                Resource
                Theory_proof
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                duplicate = true
                edit = true
            )
        }

    }

}
