Erweiterungen

This commit is contained in:
2025-08-14 20:00:00 +02:00
parent ed7b6a193b
commit 8b5c22d0b7
4 changed files with 1 additions and 15 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);