diff --git a/npm/ng-packs/apps/dev-app/src/assets/form-config.json b/npm/ng-packs/apps/dev-app/src/assets/form-config.json index 1ea15cdefe..d6876b9e96 100644 --- a/npm/ng-packs/apps/dev-app/src/assets/form-config.json +++ b/npm/ng-packs/apps/dev-app/src/assets/form-config.json @@ -26,7 +26,7 @@ { "key": "email", "type": "email", - "label": "Email Address", + "label": "AbpAccount::EmailAddress", "placeholder": "Enter email", "required": true, "validators": [ diff --git a/npm/ng-packs/packages/components/dynamic-form/src/dynamic-form-field/dynamic-form-field.component.html b/npm/ng-packs/packages/components/dynamic-form/src/dynamic-form-field/dynamic-form-field.component.html index 8bd9ad1fbf..76e16181dd 100644 --- a/npm/ng-packs/packages/components/dynamic-form/src/dynamic-form-field/dynamic-form-field.component.html +++ b/npm/ng-packs/packages/components/dynamic-form/src/dynamic-form-field/dynamic-form-field.component.html @@ -1,81 +1,62 @@ @if (visible()) { -
- @if (field().type === 'text') { - -
- - - @if (isInvalid) { - - } -
- } @else if (field().type === 'select') { - -
- - - @if (isInvalid) { - - } -
- } @else if (field().type === 'checkbox') { - -
- - @if (isInvalid) { - - } -
- } @else if (field().type === 'email') { - -
- - - @if (isInvalid) { - - } -
- } @else if (field().type === 'textarea') { - -
- - - @if (isInvalid) { - - } -
+ @if (isInvalid) { + }
+ } + } @@ -85,7 +66,7 @@
@for (error of errors; track error) { -
{{ error | abpLocalization }}
+
{{ error | abpLocalization }}
}
-
+
\ No newline at end of file