Payment Form

lib.form = FORM
lib.form {
    method = post
    layout {
        radio (
            <li>
                <input />
                <label />
            </li>
        )
    }
    10 = FIELDSET
    10 {
        legend.value = Name
        10 = SELECT
        10 {
            label.value = Title
            10 = OPTION
            10 {
                data = Mr.
                selected = 1
            }
            20 = OPTION
            20 {
                data = Mrs.
            }
            30 = OPTION
            30 {
                data = Ms.
            }
            40 = OPTION
            40 {
                data = Dr.
            }
            50 = OPTION
            50 {
                data = Viscount
            }
        }
        20 = TEXTLINE
        20 {
            label.value = First name
        }
        30 = TEXTLINE
        30 {
            label.value = Last name
        }
    }
    20 = FIELDSET
    20 {
        legend.value = Address
        10 = TEXTLINE
        10 {
            label.value = Street
        }
        20 = TEXTLINE
        20 {
            label.value = City
        }
        30 = TEXTLINE
        30 {
            label.value = State
        }
        40 = TEXTLINE
        40 {
            label.value = ZIP code
        }
    }
    30 = FIELDSET
    30 {
        legend.value = Payment details
        10 = FIELDSET
        10 {
            legend.value = Credit card
            10 = RADIO
            10 {
                label.value = American Express
                name = creditcard
            }
            20 = RADIO
            20 {
                label.value = Mastercard
                name = creditcard
            }
            30 = RADIO
            30 {
                label.value = Vista
                name = creditcard
            }
            40 = RADIO
            40 {
                label.value = Blockbuster Card
                name = creditcard
            }
        }
        20 = TEXTLINE
        20 {
            label.value = Card number
        }
        30 = TEXTLINE
        30 {
            label.value = Expiry date
        }
    }
    40 = SUBMIT
    40 {
        value = Submit my details
    }
}