/*
 * Author       : apvignesh
 * Generated on : 23-Nov-2009 09:03:57
 * Version      : 3.0
 */
application "Podworks Participant directory"
{
    type = public
    allow html = true
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Podworks_Participant_directory_Home
    {
        displayname = "Podworks Participant directory Home"
        form  Participant_directory
        {
            
            must  have  Name
            (
                type  =  text
            )

            must  have  Email
            (
                type  =  email
            )

            must  have  Mobile_Number
            (
                displayname  =  "Mobile Number"
                type  =  number
            )

            must  have  Blog
            (
                displayname  =  "Website/Blog"
                type  =  text
            )

            must  have  What_do_u_do_for_living
            (
                displayname  =  "What do u do for living"
                type  =  textarea
            )

            must  have  Your_interests
            (
                displayname  =  "Your interests"
                type  =  text
            )

            must  have  Photo
            (
                type = upload file
            )

            actions
            {
                on add
                {
                    on load
                    {
                        /* Set default value for fields including picklist while loading a form */
                        /*
	set Status = "Available";
*/
                        /* Hide fields while loading a form. It can be shown later in the 'on change' script if needed. */
                        /*
	hide guardian_name; 
	hide guardian_address; 
*/
                    }
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  Registered_view
        {
            displayname = "Registered view"
            show  all  rows  from  Participant_directory 
            (
                Name
                Blog
                What_do_u_do_for_living as "What do u do for living"
                Your_interests as "Your interests"
            )
            options
            (
                display rows = 100
            )
        }

    }

    section Registered_view
    {
        displayname = "Registered view"
        list  Participant_directory_view
        {
            displayname = "Participant_directory view"
            show  all  rows  from  Participant_directory 
            (
                Name
                Email
                Mobile_Number as "Mobile Number"
                Blog
                What_do_u_do_for_living as "What do u do for living"
                Your_interests as "Your interests"
                Photo
            )
            options
            (
                display rows = 100
            )
        }

    }

}
