Erweiterungen
This commit is contained in:
@@ -5,7 +5,6 @@ import com.vaadin.flow.component.button.ButtonVariant;
|
||||
import com.vaadin.flow.component.combobox.ComboBox;
|
||||
import com.vaadin.flow.component.formlayout.FormLayout;
|
||||
import com.vaadin.flow.component.html.H2;
|
||||
import com.vaadin.flow.component.html.Span;
|
||||
import com.vaadin.flow.component.icon.Icon;
|
||||
import com.vaadin.flow.component.icon.VaadinIcon;
|
||||
import com.vaadin.flow.component.orderedlayout.FlexComponent;
|
||||
|
||||
@@ -22,16 +22,11 @@ import static com.vaadin.flow.spring.data.VaadinSpringDataHelpers.toSpringPageRe
|
||||
@PageTitle("Kunden")
|
||||
@Menu(order = 0, icon = "vaadin:clipboard-check", title = "Kunden")
|
||||
public class CustomersView extends Main {
|
||||
|
||||
private final CustomerService todoService;
|
||||
|
||||
final TextField description;
|
||||
final Button createBtn;
|
||||
final Grid<Customer> todoGrid;
|
||||
|
||||
public CustomersView(CustomerService todoService, Clock clock) {
|
||||
this.todoService = todoService;
|
||||
|
||||
description = new TextField();
|
||||
description.setPlaceholder("Suche");
|
||||
description.setMaxLength(255);
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.vaadin.flow.component.button.ButtonVariant;
|
||||
import com.vaadin.flow.component.dialog.Dialog;
|
||||
import com.vaadin.flow.component.formlayout.FormLayout;
|
||||
import com.vaadin.flow.component.html.H2;
|
||||
import com.vaadin.flow.component.html.H3;
|
||||
import com.vaadin.flow.component.notification.Notification;
|
||||
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
|
||||
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
||||
|
||||
@@ -21,19 +21,12 @@ import java.time.Clock;
|
||||
@PageTitle("Bei VotianLT registrieren")
|
||||
@AnonymousAllowed
|
||||
public class RegisterView extends VerticalLayout {
|
||||
|
||||
private final RegisterService registerService;
|
||||
private final UserService userService;
|
||||
|
||||
private TextField emailField;
|
||||
private PasswordField passwordField;
|
||||
private PasswordField confirmPasswordField;
|
||||
private Button submitButton;
|
||||
|
||||
public RegisterView(RegisterService registerService, UserService userService, Clock clock) {
|
||||
this.registerService = registerService;
|
||||
this.userService = userService;
|
||||
|
||||
public RegisterView() {
|
||||
// Layout-Konfiguration für vollständige Zentrierung
|
||||
setSizeFull();
|
||||
setJustifyContentMode(FlexComponent.JustifyContentMode.CENTER);
|
||||
|
||||
Reference in New Issue
Block a user