From 0e248af5c64386b0761f117d25ad1c20ed40a095 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 2 Apr 2019 15:33:46 +0200 Subject: [PATCH] Unique id for radios. --- .../shared/due-time-selector.component.html | 4 ++-- .../content/shared/field-editor.component.html | 4 ++-- .../content/shared/field-editor.component.ts | 5 ++++- .../pages/schema/field-wizard.component.html | 2 +- .../pages/schema/types/boolean-ui.component.html | 4 ++-- .../pages/schema/types/date-time-ui.component.html | 4 ++-- .../schema/types/geolocation-ui.component.html | 2 +- .../pages/schema/types/number-ui.component.html | 8 ++++---- .../pages/schema/types/string-ui.component.html | 14 +++++++------- .../pages/schema/types/tags-ui.component.html | 6 +++--- .../pages/schemas/schema-form.component.html | 4 ++-- 11 files changed, 30 insertions(+), 27 deletions(-) diff --git a/src/Squidex/app/features/content/shared/due-time-selector.component.html b/src/Squidex/app/features/content/shared/due-time-selector.component.html index bbcfb622f..cbc420c11 100644 --- a/src/Squidex/app/features/content/shared/due-time-selector.component.html +++ b/src/Squidex/app/features/content/shared/due-time-selector.component.html @@ -5,14 +5,14 @@
- +
- + diff --git a/src/Squidex/app/features/content/shared/field-editor.component.html b/src/Squidex/app/features/content/shared/field-editor.component.html index ae1cef477..33edc9747 100644 --- a/src/Squidex/app/features/content/shared/field-editor.component.html +++ b/src/Squidex/app/features/content/shared/field-editor.component.html @@ -30,7 +30,7 @@
- + @@ -66,7 +66,7 @@
- + diff --git a/src/Squidex/app/features/content/shared/field-editor.component.ts b/src/Squidex/app/features/content/shared/field-editor.component.ts index e3690276c..d06292a19 100644 --- a/src/Squidex/app/features/content/shared/field-editor.component.ts +++ b/src/Squidex/app/features/content/shared/field-editor.component.ts @@ -11,7 +11,8 @@ import { FormControl } from '@angular/forms'; import { AppLanguageDto, EditContentForm, - FieldDto + FieldDto, + MathHelper } from '@app/shared'; @Component({ @@ -40,4 +41,6 @@ export class FieldEditorComponent { @Input() public displaySuffix: string; + + public uniqueId = MathHelper.guid(); } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/field-wizard.component.html b/src/Squidex/app/features/schemas/pages/schema/field-wizard.component.html index 107009588..ab56d064c 100644 --- a/src/Squidex/app/features/schemas/pages/schema/field-wizard.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/field-wizard.component.html @@ -18,7 +18,7 @@