/*
 * Author       : team639
 * Generated on : 23-Nov-2009 00:03:40
 * Version      : 3.0
 */
application "Team 639- Scouting Database"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "US/Eastern"
    section Home
    {
        form  Team_Information
        {
            displayname  =  "Team Information"
            
            Team_Name
            (
                displayname  =  "Team Name:"
                type  =  text
            )

            Team_Number1
            (
                displayname  =  "Team Number:"
                type  =  number
                width  =  20
            )

            picture1
            (
                displayname  =  "Picture"
                type = upload file
            )

            Drive_System
            (
                displayname  =  "Drive System:"
                type  =  text
            )

            Number_of_Drive_Motors
            (
                displayname  =  "Number of Drive Motors:"
                type  =  number
                width  =  20
            )

            Drive_Motor_Type
            (
                displayname  =  "Drive Motor Type:"
                type  =  text
            )

            Number_of_Drive_Wheels
            (
                displayname  =  "Number of Drive Wheels:"
                type  =  number
                width  =  20
            )

            Traction_Control_System1
            (
                displayname  =  "Traction Control System?"
                type  =  radiobuttons
                values  =  {"Yes",   "No"}
            )

            Manuverability
            (
                type  =  picklist
                values  =  {"1",   "2",   "3",   "4",   "5",   "6",   "7",   "8",   "9",   "10"}
            )

            Speed
            (
                type  =  picklist
                values  =  {"1",   "2",   "3",   "4",   "5",   "6",   "7",   "8",   "9",   "10"}
            )

            Ball_Pickup1
            (
                displayname  =  "Ball Pickup?"
                type  =  radiobuttons
                values  =  {"Yes",   "No"}
            )

            Maximum_Number_of_Balls_in_System
            (
                displayname  =  "Maximum Number of Balls in System:"
                type  =  number
                width  =  20
            )

            Pickup_Method
            (
                displayname  =  "Pickup Method:"
                type  =  text
            )

            Mechanism_of_Scoring1
            (
                displayname  =  "Mechanism of Scoring:"
                type  =  radiobuttons
                values  =  {"Shoot",   "Dump",   "N/A"}
            )

            Shooter_System_Description
            (
                displayname  =  "Shooter System Description:"
                type  =  textarea
            )

            Shooting_Range_ft
            (
                displayname  =  "Shooting Range (ft):"
                type  =  number
                width  =  20
            )

            Autonomous_Mode_Description
            (
                displayname  =  "Autonomous Mode Description:"
                type  =  textarea
            )

            Empty_Cell_Method
            (
                displayname  =  "Empty Cell Method:"
                type  =  text
            )

            Human_Player_Technique
            (
                displayname  =  "Human Player Technique:"
                type  =  textarea
            )

            Preferred_Human_Player_Location
            (
                displayname  =  "Preferred Human Player Location:"
                type  =  text
            )

            Other_Comments
            (
                displayname  =  "Other 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  Team_Information_View
        {
            displayname = "Team Information View"
            show  all  rows  from  Team_Information 
            (
                Team_Name as "Team Name"
                Team_Number1 as "Team Number:"
                Drive_System as "Drive System:"
                Number_of_Drive_Motors as "Number of Drive Motors:"
                Drive_Motor_Type as "Drive Motor Type:"
                Number_of_Drive_Wheels as "Number of Drive Wheels:"
                Manuverability
                Speed
                Maximum_Number_of_Balls_in_System as "Maximum Number of Balls in System:"
                Pickup_Method as "Pickup Method:"
                Shooter_System_Description as "Shooter System Description:"
                Shooting_Range_ft as "Shooting Range (ft):"
                Autonomous_Mode_Description as "Autonomous Mode Description:"
                Empty_Cell_Method as "Empty Cell Method:"
                Human_Player_Technique as "Human Player Technique:"
                Preferred_Human_Player_Location as "Preferred Human Player Location:"
                Other_Comments as "Other Comments:"
                Traction_Control_System1 as "Traction Control System?"
                Ball_Pickup1 as "Ball Pickup?"
                Mechanism_of_Scoring1 as "Mechanism of Scoring:"
                picture1 as "Picture"
            )
            filters 
            (
                Traction_Control_System1
                Manuverability
                Speed
                Ball_Pickup1
                Mechanism_of_Scoring1
            )
            options
            (
                display rows = 100
            )
        }

    }

}
