window(
    width=800, height=450,
    x = 16, middle = 0,
    key = "course_edit"
) {
    content(style="course_edit") {
        title {
            "Course"
        }
        header {
            textbox(id="name") {
                content {
                    "Course name"
                }
            }
        }
        info {
            info_text {
                "Cost: $"
                textbox(id="cost", filter="%d") {
                    content {
                        "2000"
                    }
                }
            }
            spacer
            info_text {
                "Subject: "
                dropdown(
                    id = "subjects",
                    value = 1,
                    options = 1,
                    option1 = "N/A"
                ) {
                    content {
                        ""
                    }
                }
            }
            button(
                on_click="init#return true",
                id="autofill"
            ) {
                content {
                    "AutoFill"
                }
            }
        }
        course_timetable_overview {
        }
        buttons {
            button(
                width=168, height=40,
                on_click="init#ui.emit_cancel(node)",
                id="cancel"
            ) {
                content {
                    "Cancel"
                }
            }
            button(
                width=168, height=40,
                on_click="init#ui.emit_accept(node)",
                id="save"
            ) {
                content {
                    "Save"
                }
            }
        }
    }
}