/*
 * Author       : maxwelliandemon
 * Generated on : 23-Nov-2009 17:00:51
 * Version      : 3.0
 */
application "IT Glossary"
{
    type = public
    date format = "yyyy-MM-dd"
    time zone = "Asia/Tokyo"
    section Home
    {
        list  Words_View
        {
            displayname = "Words View"
            show  all  rows  from  Words 
            (
                Text as "単語"
                Text_Area1 as "別名"
                Chkbox as "大分類"
                multiselect as "小分類"
                Text_Area as "解説"
                None as "辞書１"
                None1 as "辞書２"
                None2 as "辞書３"
                None3 as "辞書４"
                None4 as "参考１"
                None5 as "参考２"
            )
            filters 
            (
                Chkbox
                multiselect
            )
        }

    }

    section Property
    {
        displayname = "プロパティ"
        hide = true
        form  Words
        {
            displayname  =  "IT Words"
            captcha = true
            success message  =  "データが追加されました！"
            
            Text
            (
                displayname  =  "単語"
                type  =  text
            )

            Text_Area1
            (
                displayname  =  "別名"
                type  =  textarea
            )

            Chkbox
            (
                displayname  =  "大分類"
                type  =  checkboxes
                values  =  {"一般",   "ソフトウェア開発",   "ソフトウェア・テスト",   "OS",   "ミニコン",   "メインフレーム",   "コンピュータ・アーキテクチャ"}
            )

            multiselect
            (
                displayname  =  "小分類"
                type  =  checkboxes
                values  =  {"一般",   "ブートプロセス",   "Visual Basic",   "C++",   "C#",   "Java",   "Windows",   "Linux",   "FreeBSD",   "Solaris",   "AIX"}
            )

            Text_Area
            (
                displayname  =  "解説"
                type  =  textarea
            )

            None
            (
                displayname  =  "辞書１"
                type  =  url
                enable   linkname
            )

            None1
            (
                displayname  =  "辞書２"
                type  =  url
                enable   linkname
            )

            None2
            (
                displayname  =  "辞書３"
                type  =  url
                enable   linkname
            )

            None3
            (
                displayname  =  "辞書４"
                type  =  url
                enable   linkname
            )

            None4
            (
                displayname  =  "参考１"
                type  =  url
                enable   linkname
            )

            None5
            (
                displayname  =  "参考２"
                type  =  url
                enable   linkname
            )

            customize
            (
                label width = 50px
            )
            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"
                    )
                }
            }
        }

    }

    customize
    {
        layout = "tab"
        base theme = "gradient"
        color = "green"
    }
}
