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