diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java b/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java index 6494355..5897efe 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java @@ -1,4 +1,39 @@ package com.bib.essensbestellungsverwaltung; +import javafx.scene.control.PasswordField; +import javafx.scene.control.TextField; + public class AdminController { + + private TextField lastname; + private TextField firstname; + private TextField street; + private TextField number; + private TextField city; + private TextField plz; + private TextField email; + private PasswordField password; + + + + protected void onBtSignUp(){ + + String ln = lastname.toString(); + String fn = firstname.toString(); + String st = street.toString(); + String nr = number.toString(); + String cityString = city.toString(); + String plzString = plz.toString(); + String emailString = email.toString(); + String pw = password.toString(); + + String[] userData = new String[]{ln,fn,pw,emailString}; + String[] addressData = new String[]{st,nr,plzString,cityString}; + + AccountMgr.createWorker(userData, addressData); + + } + + } + diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java b/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java index e862560..9639516 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java @@ -1,4 +1,6 @@ package com.bib.essensbestellungsverwaltung; public class ParentController{ + + } diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml index 54f3aee..6d518a1 100644 --- a/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml @@ -9,15 +9,15 @@ - + @@ -39,7 +39,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -87,7 +87,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -124,14 +124,14 @@ - + - + - + @@ -150,7 +150,7 @@ -