Skip to content
Snippets Groups Projects
Commit 12c1c739 authored by Simon Jensen's avatar Simon Jensen
Browse files

updated signup page

parent d690097f
No related branches found
No related tags found
2 merge requests!104Weekly merge to Master,!47updated signup page
Pipeline #76323 passed
...@@ -5,10 +5,24 @@ import java.io.IOException; ...@@ -5,10 +5,24 @@ import java.io.IOException;
import NTNU.IDATT1002.App; import NTNU.IDATT1002.App;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.Button; import javafx.scene.control.Button;
import javafx.scene.control.DatePicker;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
public class SignUp { public class SignUp {
public Button signup; public GridPane signup_form;
public TextField signup_firstName;
public TextField signup_lastName;
public TextField signup_username;
public TextField signup_email;
public PasswordField signup_password;
public TextField signup_phoneCode;
public TextField signup_phoneNr;
public DatePicker signup_birthDate;
public Button signup_btn;
/** /**
* Method that switches to login page * Method that switches to login page
......
...@@ -2,41 +2,64 @@ ...@@ -2,41 +2,64 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?> <?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?> <?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?> <?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?> <?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?> <?import javafx.scene.text.Text?>
<VBox alignment="CENTER" prefHeight="400.0" prefWidth="600.0" spacing="20.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/" fx:controller="NTNU.IDATT1002.controllers.SignUp"> <VBox alignment="CENTER" prefHeight="400.0" prefWidth="600.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="NTNU.IDATT1002.controllers.SignUp">
<children> <children>
<Label text="Sign Up page" /> <Label text="Sign Up page">
<GridPane hgap="10.0" maxWidth="-Infinity" prefHeight="110.0" prefWidth="300.0" vgap="10.0"> <font>
<Font size="14.0" />
</font></Label>
<GridPane fx:id="signup_form" hgap="10.0" maxWidth="-Infinity" prefHeight="229.0" prefWidth="348.0" vgap="10.0">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="10.0" prefWidth="80.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="10.0" prefWidth="80.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints> </columnConstraints>
<rowConstraints> <rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints> </rowConstraints>
<children> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Username:" GridPane.halignment="RIGHT" /> <Text layoutX="37.0" layoutY="110.0" strokeType="OUTSIDE" strokeWidth="0.0" text="First name:" textAlignment="RIGHT" wrappingWidth="59.4921875" GridPane.halignment="RIGHT" />
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="E-Mail:" GridPane.halignment="RIGHT" GridPane.rowIndex="1" /> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Last name:" GridPane.halignment="RIGHT" GridPane.rowIndex="1" />
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Password:" GridPane.halignment="RIGHT" GridPane.rowIndex="2" /> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Username:" GridPane.halignment="RIGHT" GridPane.rowIndex="2" />
<TextField GridPane.columnIndex="1" /> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="E-Mail:" GridPane.halignment="RIGHT" GridPane.rowIndex="3" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" /> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Password:" GridPane.halignment="RIGHT" GridPane.rowIndex="4" />
<PasswordField GridPane.columnIndex="1" GridPane.rowIndex="2" /> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Phone:" GridPane.halignment="RIGHT" GridPane.rowIndex="5" />
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Birth date:" GridPane.halignment="RIGHT" GridPane.rowIndex="6" />
<TextField fx:id="signup_firstName" GridPane.columnIndex="1" />
<TextField fx:id="signup_lastName" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField fx:id="signup_username" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField fx:id="signup_email" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<PasswordField fx:id="signup_password" prefWidth="247.0" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<HBox GridPane.columnIndex="1" GridPane.rowIndex="5">
<children>
<TextField fx:id="signup_phoneCode" prefHeight="25.0" prefWidth="150.0" promptText="Calling code" />
<TextField fx:id="signup_phoneNr" prefWidth="242.0" promptText="Phone number" />
</children>
</HBox>
<DatePicker fx:id="signup_birthDate" GridPane.columnIndex="1" GridPane.rowIndex="6" />
</children> </children>
<padding> <padding>
<Insets bottom="3.0" left="3.0" right="3.0" top="3.0" /> <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
</padding> </padding>
</GridPane> </GridPane>
<Button fx:id="signup" onAction="#switchToLogin" text="Sign up" /> <Button fx:id="signup_btn" onAction="#switchToLogin" prefHeight="26.0" prefWidth="57.0" text="Sign up" />
</children> </children>
<padding> <padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" /> <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment