133 lines
6.9 KiB
XML
133 lines
6.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.svg.SVGGlyph?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Button?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.control.TableColumn?>
|
|
<?import javafx.scene.control.TableView?>
|
|
<?import javafx.scene.control.TextField?>
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
<?import javafx.scene.layout.HBox?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<?import javafx.scene.text.Font?>
|
|
|
|
<HBox alignment="TOP_CENTER" maxHeight="1.7976931348623157E308" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" stylesheets="@Login.css" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminPageController">
|
|
<children>
|
|
<VBox alignment="TOP_CENTER" maxWidth="300.0" prefHeight="600.0" prefWidth="300.0" spacing="5.0" styleClass="left-form" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
|
<children>
|
|
<Label styleClass="label-form" stylesheets="@Login.css" text="Welcome">
|
|
<font>
|
|
<Font size="19.0" />
|
|
</font>
|
|
</Label>
|
|
<Label fx:id="usernameField" styleClass="label-form" text="Admin">
|
|
<font>
|
|
<Font size="13.0" />
|
|
</font>
|
|
</Label>
|
|
<Button fx:id="productsBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Products">
|
|
<VBox.margin>
|
|
<Insets top="30.0" />
|
|
</VBox.margin>
|
|
</Button>
|
|
<Button fx:id="depositsBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Deposits">
|
|
<VBox.margin>
|
|
<Insets top="10.0" />
|
|
</VBox.margin>
|
|
</Button>
|
|
<Button fx:id="ordersBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Users">
|
|
<VBox.margin>
|
|
<Insets top="10.0" />
|
|
</VBox.margin>
|
|
</Button>
|
|
<Button fx:id="routesBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Routes">
|
|
<VBox.margin>
|
|
<Insets top="10.0" />
|
|
</VBox.margin>
|
|
</Button>
|
|
<AnchorPane prefHeight="286.0" prefWidth="223.0">
|
|
<children>
|
|
<Button fx:id="logoutBtn" layoutX="72.0" layoutY="241.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="79.0" text="Logout" />
|
|
</children>
|
|
</AnchorPane>
|
|
</children>
|
|
<padding>
|
|
<Insets top="50.0" />
|
|
</padding>
|
|
<HBox.margin>
|
|
<Insets />
|
|
</HBox.margin>
|
|
</VBox>
|
|
<AnchorPane HBox.hgrow="ALWAYS">
|
|
<children>
|
|
<VBox fx:id="rightVBox" alignment="TOP_CENTER" prefHeight="600.0" prefWidth="851.0" stylesheets="@Login.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
<children>
|
|
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form">
|
|
<VBox.margin>
|
|
<Insets bottom="15.0" top="15.0" />
|
|
</VBox.margin>
|
|
</TextField>
|
|
<TableView editable="true" prefHeight="446.0" prefWidth="851.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
|
<columns>
|
|
<TableColumn fx:id="idCol" prefWidth="61.0" text="id" />
|
|
<TableColumn fx:id="nameCol" prefWidth="218.0" text="name" />
|
|
<TableColumn fx:id="quantityAvailableCol" prefWidth="218.0" text="quantity available" />
|
|
<TableColumn fx:id="quantitySelectedCol" prefWidth="147.0" text="selected quantity" />
|
|
<TableColumn fx:id="selectedCol" prefWidth="192.0" text="selected" />
|
|
</columns>
|
|
<columnResizePolicy>
|
|
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
|
</columnResizePolicy>
|
|
</TableView>
|
|
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
<children>
|
|
<VBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="63.0">
|
|
<children>
|
|
<Label text="Name">
|
|
<VBox.margin>
|
|
<Insets bottom="10.0" left="10.0" />
|
|
</VBox.margin>
|
|
</Label>
|
|
<Label text="Quantity">
|
|
<VBox.margin>
|
|
<Insets left="10.0" />
|
|
</VBox.margin>
|
|
</Label>
|
|
</children>
|
|
</VBox>
|
|
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0">
|
|
<children>
|
|
<TextField fx:id="nameField">
|
|
<VBox.margin>
|
|
<Insets bottom="10.0" />
|
|
</VBox.margin>
|
|
</TextField>
|
|
<TextField fx:id="quantityField" />
|
|
</children>
|
|
</VBox>
|
|
<Button fx:id="insertBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="INSERT">
|
|
<HBox.margin>
|
|
<Insets left="50.0" />
|
|
</HBox.margin>
|
|
</Button>
|
|
<Button fx:id="updateBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="UPDATE">
|
|
<HBox.margin>
|
|
<Insets left="50.0" />
|
|
</HBox.margin>
|
|
</Button>
|
|
<Button fx:id="deleteBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="DELETE">
|
|
<HBox.margin>
|
|
<Insets left="50.0" />
|
|
</HBox.margin>
|
|
</Button>
|
|
</children>
|
|
</HBox>
|
|
</children>
|
|
</VBox>
|
|
</children>
|
|
</AnchorPane>
|
|
<SVGGlyph />
|
|
</children>
|
|
</HBox>
|