/*
 * Author       : abad36
 * Generated on : 22-Nov-2009 20:29:05
 * Version      : 3.0
 */
application "Lodging"
{
    type = public
    date format = "MM/dd/yy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  Boater_20Friendly_20Lodging
        {
            displayname  =  "Boater%20Friendly%20Lodging"
            captcha = true
            success message  =  "Data Added Successfully!"
            
            column
            {
                must  have  unique  Business_Name
                (
                    displayname  =  "Business Name"
                    type  =  text
                )

                must  have  Street_Address
                (
                    displayname  =  "Street Address"
                    type  =  text
                )

                Telephone
                (
                    type  =  text
                )

                must  have  Features
                (
                    type  =  checkboxes
                    values  =  {"Outlets for chargers",   "Parking in front of room",   "Easy Access",   "Grille Use",   "Swimming Pool",   "Extra people in room",   "Restaurant on premises",   "Special Rates for tournaments"}
                )

                plain
                (
                    type  =  plaintext
                    value = "Please enter all the information you can to help your fellow anglers decide where to stay for tournaments. If you think of another field to add please let me know.<br>\n"
                )

            }
            column
            {
                must  have  Type_Motel_Hotel_etc
                (
                    displayname  =  "Type (Motel, Hotel, etc)"
                    type  =  text
                )

                City_State_Zip
                (
                    displayname  =  "City, State, Zip"
                    type  =  text
                )

                GPS_Coordinates
                (
                    displayname  =  "GPS Coordinates"
                    type  =  text
                )

                Distance_to_Ramp
                (
                    displayname  =  "Distance to Ramp"
                    type  =  text
                )

                Your_personal_rating_5_best_1_worst
                (
                    displayname  =  "Your personal rating (5 best, 1 worst)"
                    type  =  text
                )

                Notes
                (
                    displayname  =  "Notes:"
                    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  Boater_20Friendly_20Lodging_View
        {
            displayname = "Boater%20Friendly%20Lodging View"
            show  all  rows  from  Boater_20Friendly_20Lodging 
            (
                Business_Name as "Business Name"
                Type_Motel_Hotel_etc as "Type (Motel, Hotel, etc)"
                Street_Address as "Street Address"
                City_State_Zip as "City, State, Zip"
                Telephone
                GPS_Coordinates as "GPS Coordinates"
                Features
                Distance_to_Ramp as "Distance to Ramp"
                Your_personal_rating_5_best_1_worst as "Your personal rating (5 best, 1 worst)"
                Notes as "Notes:"
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                edit = true
                delete = true
            )
        }

    }

}
