aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/fxml/RegistrationWindow.fxml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/fxml/RegistrationWindow.fxml')
-rw-r--r--src/main/resources/fxml/RegistrationWindow.fxml152
1 files changed, 87 insertions, 65 deletions
diff --git a/src/main/resources/fxml/RegistrationWindow.fxml b/src/main/resources/fxml/RegistrationWindow.fxml
index 0394ca7..1f57c11 100644
--- a/src/main/resources/fxml/RegistrationWindow.fxml
+++ b/src/main/resources/fxml/RegistrationWindow.fxml
@@ -3,74 +3,96 @@
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ChoiceBox?>
+<?import javafx.scene.control.Hyperlink?>
<?import javafx.scene.control.Label?>
-<?import javafx.scene.control.SplitPane?>
-<?import javafx.scene.control.TableColumn?>
-<?import javafx.scene.control.TableView?>
+<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
+<?import javafx.scene.layout.ColumnConstraints?>
+<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
+<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
+<GridPane fx:id="root" stylesheets="@/styles/main.css" styleClass="bg-gray-orange" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="at.ac.tuwien.sepm.assignment.groupphase.missioncontrol.controller.RegistrationWindowController">
+ <rowConstraints>
+ <RowConstraints/> <!--"Neue Anmeldung", "von x bis x", Buttons-->
+ <RowConstraints/> <!--"Fahrzeug", "Personen"-->
+ <RowConstraints/> <!--"KTW-99", "Max Mustermann, ..."-->
+ <RowConstraints prefHeight="15"/> <!--The overflow of the orange area-->
+ <RowConstraints/> <!--Search-->
+ <RowConstraints/> <!--Lists-->
+ </rowConstraints>
+ <columnConstraints>
+ <ColumnConstraints/>
+ <ColumnConstraints prefWidth="20"/> <!--The gap between the colums-->
+ <ColumnConstraints prefWidth="320"/> <!--EmployeeListItem: 320-->
+ </columnConstraints>
+ <padding>
+ <Insets topRightBottomLeft="12"/>
+ </padding>
+ <AnchorPane GridPane.columnIndex="0" GridPane.columnSpan="3" GridPane.rowIndex="0"
+ GridPane.rowSpan="4" styleClass="bg-dark-orange">
+ <GridPane.margin>
+ <Insets topRightBottomLeft="-12"/>
+ </GridPane.margin>
+ </AnchorPane>
+ <VBox spacing="3"> <!--"Neue Anmeldung", "von bis"-->
+ <Label text="Neue Anmeldung" styleClass="text-big, text-white, text-bold"/>
+ <HBox spacing="6" alignment="CENTER_LEFT">
+ <Label text="von" styleClass="text-medium, text-white"/>
+ <ChoiceBox fx:id="cbStart" value="8:00" styleClass="text-medium, text-bold"/>
+ <Label text="bis" styleClass="text-medium, text-white"/>
+ <ChoiceBox fx:id="cbEnd" value="16:00" styleClass="text-medium, text-bold"/>
+ </HBox>
+ </VBox>
+ <VBox GridPane.columnIndex="2" GridPane.halignment="RIGHT" alignment="TOP_RIGHT">
+ <Hyperlink text="schließen" onMouseClicked="#cancel" styleClass="text-small, text-white"/>
+ <Button text="ERSTELLEN" onMouseClicked="#create" styleClass="button-main, text-medium, shadowed"/>
+ </VBox>
+ <Label text="Fahrzeug" GridPane.rowIndex="1" styleClass="text-big, text-white, text-bold">
+ <GridPane.margin>
+ <Insets top="12"/>
+ </GridPane.margin>
+ </Label>
+ <Label text="Personen" GridPane.rowIndex="1" GridPane.columnIndex="2"
+ styleClass="text-big, text-white, text-bold">
+ <GridPane.margin>
+ <Insets top="12"/>
+ </GridPane.margin>
+ </Label>
+ <Label fx:id="lVehicles" text="ZZZ-40821" GridPane.valignment="TOP" alignment="TOP_LEFT" GridPane.rowIndex="2"
+ styleClass="text-medium, text-white"/>
+ <Label fx:id="lEmployees" wrapText="true" alignment="TOP_LEFT" prefHeight="20"
+ text="PERSONEN" GridPane.rowIndex="2"
+ GridPane.columnIndex="2" styleClass="text-medium, text-white"/>
-<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="600.0" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.controller.RegistrationWindowController">
- <children>
- <AnchorPane prefHeight="135.0" prefWidth="600.0">
- <children>
- <Label layoutX="14.0" layoutY="14.0" text="Neue Anmeldung" />
- <Label layoutX="14.0" layoutY="44.0" text="von" />
- <Label layoutX="133.0" layoutY="44.0" text="bis" />
- <ChoiceBox fx:id="cbStart" layoutX="42.0" layoutY="40.0" prefWidth="80.0" />
- <ChoiceBox fx:id="cbEnd" layoutX="159.0" layoutY="40.0" prefWidth="80.0" />
- <Label layoutX="10.0" layoutY="82.0" text="Fahrzeug" />
- <Label fx:id="lVehicles" layoutX="10.0" layoutY="108.0" text="Fahrzeugname" />
- <Label layoutX="216.0" layoutY="82.0" text="Personen" />
- <Label fx:id="lEmployees" layoutX="216.0" layoutY="108.0" text="Namen" />
- </children>
- </AnchorPane>
- <SplitPane dividerPositions="0.35" prefWidth="200.0">
- <items>
- <VBox prefHeight="200.0" prefWidth="100.0">
- <children>
- <Label text="Fahrzeugsuche" />
- <TextField fx:id="tfVehicleSearch" />
- <TableView fx:id="tvVehicles" prefHeight="200.0" prefWidth="200.0">
- <columns>
- <TableColumn fx:id="tcVehicles" prefWidth="75.0" text="Fahrzeuge" />
- </columns>
- <columnResizePolicy>
- <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
- </columnResizePolicy>
- </TableView>
- </children>
- </VBox>
- <VBox prefHeight="200.0" prefWidth="100.0">
- <children>
- <Label text="Personensuche" />
- <TextField fx:id="tfEmployeeSearch" />
- <TableView fx:id="tvEmployees" prefHeight="200.0" prefWidth="200.0">
- <columns>
- <TableColumn fx:id="tcEmployees" prefWidth="75.0" text="Personen" />
- </columns>
- <columnResizePolicy>
- <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
- </columnResizePolicy>
- </TableView>
- </children>
- </VBox>
- </items>
- </SplitPane>
- <HBox alignment="CENTER" prefWidth="200.0">
- <children>
- <Button mnemonicParsing="false" onAction="#cancel" text="Abbrechen">
- <HBox.margin>
- <Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
- </HBox.margin>
- </Button>
- <Button mnemonicParsing="false" onAction="#create" text="Erstellen">
- <HBox.margin>
- <Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
- </HBox.margin>
- </Button>
- </children></HBox>
- </children>
-</VBox>
+ <ScrollPane GridPane.rowIndex="5" hbarPolicy="NEVER" vbarPolicy="ALWAYS" >
+ <GridPane.margin>
+ <Insets left="-7" right="-20" bottom="-12"/>
+ </GridPane.margin>
+ <VBox fx:id="vbVehicles" spacing="6">
+ <padding>
+ <Insets top="6" left="6" right="6" bottom="6"/>
+ </padding>
+ </VBox>
+ </ScrollPane>
+ <ScrollPane fx:id="listEmployee" hbarPolicy="NEVER" vbarPolicy="ALWAYS" GridPane.rowIndex="5" GridPane.columnIndex="2">
+ <GridPane.margin>
+ <Insets left="-7" right="-20" bottom="-12"/>
+ </GridPane.margin>
+ </ScrollPane>
+ <VBox GridPane.rowIndex="4" spacing="6" styleClass="bg-white, shadowed">
+ <padding>
+ <Insets topRightBottomLeft="6"/>
+ </padding>
+ <Label text="Fahrzeugsuche" styleClass="text-medium"/>
+ <TextField fx:id="tfVehicleSearch" prefWidth="0" onKeyTyped="#tfVehicleSearch_TextChanged" styleClass="text-big, text-bold"/>
+ </VBox>
+ <VBox GridPane.rowIndex="4" spacing="6" GridPane.columnIndex="2" styleClass="bg-white, shadowed">
+ <padding>
+ <Insets topRightBottomLeft="6"/>
+ </padding>
+ <Label text="Personensuche" styleClass="text-medium"/>
+ <TextField fx:id="tfEmployeeSearch" onKeyTyped="#tfEmployeeSearch_TextChanged" styleClass="text-big, text-bold"/>
+ </VBox>
+</GridPane>