<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<?import com.sun.javafx.scene.control.DatePickerContent?>
<GridPane xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="client.MainController">

    <columnConstraints>
        <ColumnConstraints/>
        <ColumnConstraints/>
        <ColumnConstraints/>
    </columnConstraints>
    <rowConstraints>
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
        <RowConstraints vgrow="ALWAYS" />
    </rowConstraints>

    <Label styleClass="mainLabel">Termin anlegen</Label>

    <Label styleClass="inputLabel" GridPane.rowIndex="1">Datum:</Label>
    <Label styleClass="inputLabel" GridPane.rowIndex="2">Titel:</Label>
    <Label styleClass="inputLabel" GridPane.rowIndex="3">Zeit:</Label>
    <Label styleClass="inputLabel" GridPane.rowIndex="4">Typ:</Label>
    <Label styleClass="inputLabel" GridPane.rowIndex="5">Priorität:</Label>
    <Label styleClass="inputLabel" GridPane.rowIndex="6">Ganztägig:</Label>

    <DatePicker GridPane.columnIndex="1" GridPane.rowIndex="1" maxWidth="400" minWidth="400"/>
    <TextField GridPane.columnIndex="1" GridPane.rowIndex="2" maxWidth="400" minWidth="400"/>
    <DatePicker  GridPane.columnIndex="1" GridPane.rowIndex="3" maxWidth="400" minWidth="400"/>
    <ComboBox GridPane.columnIndex="1" GridPane.rowIndex="4" maxWidth="400" minWidth="400"/>
    <ComboBox GridPane.columnIndex="1" GridPane.rowIndex="5" maxWidth="200" minWidth="200"/>
    <CheckBox GridPane.columnIndex="1" GridPane.rowIndex="6"/>

    <HBox GridPane.columnIndex="1" GridPane.rowIndex="7" GridPane.columnSpan="2"  alignment="CENTER_RIGHT">
        <Button onAction="#abortBtnClick" maxWidth="150" minWidth="150" >Abbrechen</Button>
        <Button styleClass="mainButton" onAction="#createBtnClick" maxWidth="150" minWidth="150">Anlegen</Button>
    </HBox>

</GridPane>