From 4d38cce4590b5b4e840fd2e9055f8841821c88af Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 31 Oct 2024 07:03:26 +0100 Subject: [PATCH] refactor(user-update-form.component.css): Angeordnete CSSS anstatt Bootstrap zu verwenden --- .../user-update-form.component.html | 109 +++++++----------- .../user-update-form.component.scss | 32 +++++ .../user-update-form.component.ts | 3 - 3 files changed, 73 insertions(+), 71 deletions(-) diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.html b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.html index f20ea8c..f40d288 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.html +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.html @@ -1,72 +1,45 @@ -
-
-
- - Benutzername - +
+ + Benutzername + + @if (email.invalid) { + {{errorMessage()}} + } + + + E-Mail + - @if (email.invalid) { - {{errorMessage()}} - } - -
-
- - E-Mail - - @if (email.invalid) { - {{mailErrorMessage()}} - } - -
-
-
- -
-
+ @if (email.invalid) { + {{mailErrorMessage()}} + } +
-
-
- - Vorname - - @if (email.invalid) { - {{errorMessage()}} - } - -
-
- - Nachname - - @if (email.invalid) { - {{errorMessage()}} - } - -
-
- -
+
+ + Vorname + + @if (email.invalid) { + {{errorMessage()}} + } + + + Nachname + + @if (email.invalid) { + {{errorMessage()}} + } + +
+
+ +
\ No newline at end of file diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.scss b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.scss index e69de29..d0d6a7e 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.scss +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.scss @@ -0,0 +1,32 @@ +.dd-container { + display: flex; + flex-direction: column; + padding: 0; + margin: 1rem 0 1rem 0; + justify-content: space-evenly; +} + +.dd-row { + display: flex; + flex-direction: row; + padding: 0; + margin: 0; +} + +.input-row { + justify-content: space-evenly; +} + +.button-row { + align-items: center; + justify-content: center; +} + +mat-form-field { + width: 100%; + margin: 0 1rem 0 1rem; +} + +button { + margin: 0 1rem 0 1rem; +} \ No newline at end of file diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.ts index d1eb7d4..94d1884 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/user-update-form/user-update-form.component.ts @@ -36,9 +36,6 @@ export class UserUpdateFormComponent { mailErrorMessage = signal(''); errorMessage = signal(''); - public readonly formFieldBSClass: string = "col d-flex justify-content-center mx-1 my-2" - public readonly buttonBSClass: string = "d-flex justify-content-center mx-1 my-2" - constructor(private uService: UserService, private rService: RefreshService) { merge( this.email.statusChanges, this.email.valueChanges)