/*
 * Author       : lpress
 * Generated on : 22-Nov-2009 21:56:47
 * Version      : 3.0
 */
application "CIS471 roster"
{
    type = public
    allow html = true
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  cis471
        {
            
            must  have  Firstname
            (
                displayname  =  "First name"
                type  =  text
                width  =  20
                tooltip  =  "What is your first name?"
            )

            must  have  Lastname
            (
                displayname  =  "Last name"
                type  =  text
                tooltip  =  "What is your last name?"
            )

            must  have  unique  CIS275URL
            (
                displayname  =  "CIS 275 URL"
                type  =  text
                defaultvalue  =  "http://sws.csudh.edu/"
                width  =  30
                tooltip  =  "What was the URL of the Web site you built for CIS 275?  Note that it should be on sws.csudh.edu."
            )

            must  have  email
            (
                displayname  =  "Email address"
                type  =  email
                tooltip  =  "What is your preferred email address?"
            )

            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  CIS_471_roster
        {
            displayname = "CIS 471 roster"
            show  all  rows  from  cis471 
            (
                Lastname as "Last name"
                Firstname as "First name"
                CIS275URL as "CIS 275 URL"
                email as "Email address"
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                edit = true
                delete = true
            )
        }

    }

}
