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

<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import ru.trader.view.support.DurationField?>
<?import ru.trader.view.support.NumberField?>
<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
          fx:controller="ru.trader.controllers.MissionsController"
          hgap="10" vgap="5">

    <columnConstraints>
        <ColumnConstraints minWidth="100" maxWidth="100"/>
        <ColumnConstraints minWidth="140" maxWidth="140"/>
    </columnConstraints>

    <HBox spacing="4" GridPane.columnSpan="2" alignment="CENTER">
        <ToggleButton fx:id="courierBtn"><graphic>
            <ImageView fitWidth="30" preserveRatio="true" pickOnBounds="true" smooth="true">
                <image><Image url="@/images/courier_mission.jpg" /></image>
            </ImageView></graphic>
        </ToggleButton>
        <ToggleButton fx:id="deliveryBtn"><graphic>
            <ImageView fitWidth="30" preserveRatio="true" pickOnBounds="true" smooth="true">
                <image><Image url="@/images/transport_mission.jpg" /></image>
            </ImageView></graphic>
        </ToggleButton>
        <ToggleButton fx:id="supplyBtn"><graphic>
            <ImageView fitWidth="30" preserveRatio="true" pickOnBounds="true" smooth="true">
                <image><Image url="@/images/delivering_mission.jpg" /></image>
            </ImageView></graphic>
        </ToggleButton>
    </HBox>

    <Label GridPane.rowIndex="1" text="%missions.label.starport"/>
    <TextField fx:id="starportText" GridPane.rowIndex="1" GridPane.columnIndex="1"/>
    <Label GridPane.rowIndex="2" text="%missions.label.cargo"/>
    <TextField fx:id="itemText" GridPane.rowIndex="2" GridPane.columnIndex="1"/>
    <Label GridPane.rowIndex="3" text="%missions.label.quantity"/>
    <NumberField fx:id="quantity" GridPane.rowIndex="3" GridPane.columnIndex="1" value="0"/>
    <Label GridPane.rowIndex="4" text="%missions.label.leftTime"/>
    <DurationField fx:id="leftTime" GridPane.rowIndex="4" GridPane.columnIndex="1" />
    <Label GridPane.rowIndex="5" text="%missions.label.reward"/>
    <NumberField fx:id="reward" GridPane.rowIndex="5" GridPane.columnIndex="1" value="0" />
</GridPane>
