/*
 * Author       : edotson
 * Generated on : 22-Nov-2009 21:36:05
 * Version      : 3.0
 */
application "Indique Hair Model Call"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "US/Eastern"
    section Home
    {
        form  Indique_Model_Call
        {
            displayname  =  "Indique Model Call"
            success message  =  "Your Data Added Successfully! Thank you for submitting your information."
            
            must  have  Your_Name
            (
                displayname  =  "Your Name"
                type  =  text
            )

            must  have  Phone_Number
            (
                displayname  =  "Phone Number"
                type  =  number
                width  =  20
            )

            must  have  Email_Address
            (
                displayname  =  "Email Address"
                type  =  email
            )

            must  have  Weight
            (
                displayname  =  "Your Current Weight"
                type  =  text
                maxchar  =  3
            )

            must  have  Your_Height
            (
                displayname  =  "Your Current Height"
                type  =  text
                maxchar  =  5
            )

            must  have  What_s_your_current_hair_length
            (
                displayname  =  "What's your current hair length?"
                type  =  radiobuttons
                values  =  {"Under 4\"",   "Between 4\" to 10\"",   "10\" to 16\"",   "16+",   "10",   "Between 4",   "Under 4"}
            )

            must  have  Current_Hair_Color
            (
                displayname  =  "Current Hair Color"
                type  =  text
                maxchar  =  100
            )

            must  have  How_much_experience_do_you_have_in_modeling
            (
                displayname  =  "How much experience do you have in modeling?"
                type  =  picklist
                values  =  {"Less than 6 months",   "6 months to a year",   "1 yr +",   "3 yrs +"}
            )

            Online_Portfolio
            (
                displayname  =  "Online Portfolio URL (if applicable)"
                type  =  url
            )

            Model_Image
            (
                type  =  plaintext
                value = "<font style=\"font-family: tahoma,arial,helvetica,sans-serif; font-weight: bold;\" size=\"2\"><span style=\"color: rgb(204, 0, 102);\">If you need to send images to us, please upload below (4 images max.). <span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">Thank you.</span></span></font><br>\n"
            )

            Image_upload_1
            (
                displayname  =  "Image upload 1"
                type = upload file
            )

            Image_1
            (
                displayname  =  "Image upload 2"
                type = upload file
            )

            Image_upload_11
            (
                displayname  =  "Image upload 3"
                type = upload file
            )

            Image_upload_4
            (
                displayname  =  "Image upload 4"
                type = upload file
            )

            Add_comments_below
            (
                displayname  =  "Add comments here (if needed)"
                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  Indique_Model_Call_View
        {
            displayname = "Indique Model Call View"
            show  all  rows  from  Indique_Model_Call 
            (
                Your_Name as "Your Name"
                Email_Address as "Email Address"
                Online_Portfolio as "Online Portfolio"
                Phone_Number as "Phone Number"
                How_much_experience_do_you_have_in_modeling as "How much experience do you have in modeling?"
                Weight
                Your_Height as "Your Height"
                Current_Hair_Color as "Current Hair Color"
                What_s_your_current_hair_length as "What's your current hair length?"
                Image_1 as "Image 1"
                Image_upload_1 as "Image upload 1"
                Image_upload_11 as "Image upload 1"
                Image_upload_4 as "Image upload 4"
                Add_comments_below as "Add comments below."
            )
            filters 
            (
                What_s_your_current_hair_length
                How_much_experience_do_you_have_in_modeling
            )
            sort by
            (
                Your_Name   ascending
                Online_Portfolio   ascending
                Image_1   ascending
                Image_upload_1   ascending
                Image_upload_11   ascending
                Image_upload_4   ascending
                Add_comments_below   ascending
                How_much_experience_do_you_have_in_modeling   ascending
                Weight   ascending
                Your_Height   ascending
                Current_Hair_Color   ascending
                What_s_your_current_hair_length   ascending
            )
            options
            (
                display rows = 100
            )
        }

    }

}
