From d1d5ad458c6058f09c6a7de9933f25b9484bdd43 Mon Sep 17 00:00:00 2001 From: mchouliara Date: Fri, 20 Sep 2024 15:55:07 +0300 Subject: [PATCH] add required text next to asterisks --- .../description-status-editor.component.html | 5 ++-- ...ion-template-editor-section.component.html | 4 +++- ...description-template-editor.component.html | 24 ++++++++++++++----- .../plan-status-editor.component.html | 8 +++++-- ...description-workflow-editor.component.html | 8 +++++-- .../plan-workflow-editor.component.html | 12 +++++++--- .../editor/tenant-editor.component.html | 4 +++- ...cription-base-fields-editor.component.html | 8 +++++-- .../plan-clone-dialog.component.html | 4 +++- .../plan-new-version-dialog.component.html | 8 +++++-- .../plan-editor.component.html | 16 +++++++++---- .../user-profile/user-profile.component.html | 20 ++++++++++------ frontend/src/styles.scss | 3 +++ 13 files changed, 90 insertions(+), 34 deletions(-) diff --git a/frontend/src/app/ui/admin/description-status/editor/description-status-editor/description-status-editor.component.html b/frontend/src/app/ui/admin/description-status/editor/description-status-editor/description-status-editor.component.html index c7a43d239..669928f4d 100644 --- a/frontend/src/app/ui/admin/description-status/editor/description-status-editor/description-status-editor.component.html +++ b/frontend/src/app/ui/admin/description-status/editor/description-status-editor/description-status-editor.component.html @@ -73,7 +73,8 @@
- {{'DESCRIPTION-STATUS-EDITOR.FIELDS.ROLES' | translate}}* + {{'DESCRIPTION-STATUS-EDITOR.FIELDS.ROLES' | translate}} * + {{'GENERAL.VALIDATION.REQUIRED' | translate }} {{enumUtils.toAppRoleString(userRole)}} @@ -83,7 +84,7 @@
- {{'DESCRIPTION-STATUS-EDITOR.FIELDS.PLAN-ROLES' | translate}}* + {{'DESCRIPTION-STATUS-EDITOR.FIELDS.PLAN-ROLES' | translate}} *{{'GENERAL.VALIDATION.REQUIRED' | translate }} {{enumUtils.toPlanUserRoleString(planRole)}} diff --git a/frontend/src/app/ui/admin/description-template/editor/components/section/description-template-editor-section.component.html b/frontend/src/app/ui/admin/description-template/editor/components/section/description-template-editor-section.component.html index 5ed520cb2..cc537ce77 100644 --- a/frontend/src/app/ui/admin/description-template/editor/components/section/description-template-editor-section.component.html +++ b/frontend/src/app/ui/admin/description-template/editor/components/section/description-template-editor-section.component.html @@ -1,6 +1,8 @@ 
-
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.SECTION-INFO.SECTION-NAME' | translate}} *
+
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.SECTION-INFO.SECTION-NAME' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.SECTION-INFO.SECTION-NAME-HINT' | translate}}
diff --git a/frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html b/frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html index 0871f4514..b414c20a5 100644 --- a/frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html +++ b/frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html @@ -36,7 +36,9 @@
-
1.1 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-NAME'| translate}} *
+
1.1 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-NAME'| translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-NAME-HINT'| translate}}
@@ -45,7 +47,9 @@
-
1.2 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-CODE'| translate}} *
+
1.2 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-CODE'| translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-CODE-HINT'| translate}}
@@ -54,7 +58,9 @@
-
1.3 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-DESCRIPTION'| translate}} *
+
1.3 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-DESCRIPTION'| translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-DESCRIPTION-HINT'| translate}}
@@ -67,7 +73,9 @@
-
1.4 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-TYPE'| translate}} *
+
1.4 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-TYPE'| translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-TYPE-HINT'| translate}}
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-SELECT-TYPE' | translate}} @@ -78,7 +86,9 @@
-
1.5 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-LANGUAGE'| translate}} *
+
1.5 {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-LANGUAGE'| translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DESCRIPTION-TEMPLATE-LANGUAGE-HINT'| translate}}
@@ -172,7 +182,9 @@
-
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.PAGE-INFO.PAGE-NAME' | translate}} *
+
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.PAGE-INFO.PAGE-NAME' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.PAGE-INFO.PAGE-NAME-HINT' | translate}}
diff --git a/frontend/src/app/ui/admin/plan-status/editor/plan-status-editor/plan-status-editor.component.html b/frontend/src/app/ui/admin/plan-status/editor/plan-status-editor/plan-status-editor.component.html index d24c9095c..ec2556240 100644 --- a/frontend/src/app/ui/admin/plan-status/editor/plan-status-editor/plan-status-editor.component.html +++ b/frontend/src/app/ui/admin/plan-status/editor/plan-status-editor/plan-status-editor.component.html @@ -73,7 +73,9 @@
- {{'PLAN-STATUS-EDITOR.FIELDS.ROLES' | translate}}* + {{'PLAN-STATUS-EDITOR.FIELDS.ROLES' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} + {{enumUtils.toAppRoleString(userRole)}} @@ -83,7 +85,9 @@
- {{'PLAN-STATUS-EDITOR.FIELDS.PLAN-ROLES' | translate}}* + {{'PLAN-STATUS-EDITOR.FIELDS.PLAN-ROLES' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} + {{enumUtils.toPlanUserRoleString(planRole)}} diff --git a/frontend/src/app/ui/admin/tenant-configuration/editor/description-workflow/description-workflow-editor/description-workflow-editor.component.html b/frontend/src/app/ui/admin/tenant-configuration/editor/description-workflow/description-workflow-editor/description-workflow-editor.component.html index 342e767a3..f1190dcfd 100644 --- a/frontend/src/app/ui/admin/tenant-configuration/editor/description-workflow/description-workflow-editor/description-workflow-editor.component.html +++ b/frontend/src/app/ui/admin/tenant-configuration/editor/description-workflow/description-workflow-editor/description-workflow-editor.component.html @@ -2,7 +2,9 @@
- {{'WORKFLOW-EDITOR.FIELDS.STARTING-STATUS' | translate}}* + {{'WORKFLOW-EDITOR.FIELDS.STARTING-STATUS' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
- {{'WORKFLOW-EDITOR.FIELDS.FROM-STATUS' | translate}}* + {{'WORKFLOW-EDITOR.FIELDS.FROM-STATUS' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
- {{'WORKFLOW-EDITOR.FIELDS.STARTING-STATUS' | translate}}* + {{'WORKFLOW-EDITOR.FIELDS.STARTING-STATUS' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
- {{'WORKFLOW-EDITOR.FIELDS.FROM-STATUS' | translate}}* + {{'WORKFLOW-EDITOR.FIELDS.FROM-STATUS' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
- {{'WORKFLOW-EDITOR.FIELDS.TO-STATUS' | translate}}* + {{'WORKFLOW-EDITOR.FIELDS.TO-STATUS' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
-

{{'TENANT-EDITOR.FIELDS.DESCRIPTION' | translate}} *

+

{{'TENANT-EDITOR.FIELDS.DESCRIPTION' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +

diff --git a/frontend/src/app/ui/description/editor/description-base-fields-editor/description-base-fields-editor.component.html b/frontend/src/app/ui/description/editor/description-base-fields-editor/description-base-fields-editor.component.html index 9cc7995f8..d0dca1d19 100644 --- a/frontend/src/app/ui/description/editor/description-base-fields-editor/description-base-fields-editor.component.html +++ b/frontend/src/app/ui/description/editor/description-base-fields-editor/description-base-fields-editor.component.html @@ -7,7 +7,9 @@
-
{{'DESCRIPTION-EDITOR.BASE-INFO.FIELDS.TITLE' | translate}}*
+
{{'DESCRIPTION-EDITOR.BASE-INFO.FIELDS.TITLE' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
@@ -45,7 +47,9 @@
-
{{'DESCRIPTION-EDITOR.BASE-INFO.FIELDS.DESCRIPTION-TEMPLATE' | translate}}*
+
{{'DESCRIPTION-EDITOR.BASE-INFO.FIELDS.DESCRIPTION-TEMPLATE' | translate}} * + {{'GENERAL.VALIDATION.REQUIRED' | translate }} +
diff --git a/frontend/src/app/ui/plan/clone-dialog/plan-clone-dialog.component.html b/frontend/src/app/ui/plan/clone-dialog/plan-clone-dialog.component.html index a256db761..c124dc4cc 100644 --- a/frontend/src/app/ui/plan/clone-dialog/plan-clone-dialog.component.html +++ b/frontend/src/app/ui/plan/clone-dialog/plan-clone-dialog.component.html @@ -8,7 +8,9 @@
-
{{'PLAN-CLONE-DIALOG.FIELDS.LABEL' | translate}}*
+
{{'PLAN-CLONE-DIALOG.FIELDS.LABEL' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
diff --git a/frontend/src/app/ui/plan/new-version-dialog/plan-new-version-dialog.component.html b/frontend/src/app/ui/plan/new-version-dialog/plan-new-version-dialog.component.html index d189968ce..18ea5f0b3 100644 --- a/frontend/src/app/ui/plan/new-version-dialog/plan-new-version-dialog.component.html +++ b/frontend/src/app/ui/plan/new-version-dialog/plan-new-version-dialog.component.html @@ -8,7 +8,9 @@
-
{{'PLAN-NEW-VERSION-DIALOG.FIELDS.LABEL' | translate}}*
+
{{'PLAN-NEW-VERSION-DIALOG.FIELDS.LABEL' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
@@ -32,7 +34,9 @@
-
{{'PLAN-NEW-VERSION-DIALOG.FIELDS.BLUEPRINT' | translate}}*
+
{{'PLAN-NEW-VERSION-DIALOG.FIELDS.BLUEPRINT' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
diff --git a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html index 1cf2b38b0..0904f11c3 100644 --- a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html +++ b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html @@ -78,7 +78,7 @@
-
{{'PLAN-EDITOR.FIELDS.TITLE' | translate}} *
+
{{'PLAN-EDITOR.FIELDS.TITLE' | translate}} *{{'GENERAL.VALIDATION.REQUIRED' | translate }}
{{'PLAN-EDITOR.FIELDS.TITLE' | translate}} @@ -96,7 +96,7 @@
-
{{'PLAN-EDITOR.FIELDS.BLUEPRINT' | translate}} *
+
{{'PLAN-EDITOR.FIELDS.BLUEPRINT' | translate}} *{{'GENERAL.VALIDATION.REQUIRED' | translate }}
{{'PLAN-EDITOR.FIELDS.BLUEPRINT' | translate}} @@ -203,9 +203,15 @@
-
{{i + 1}}.{{j + 1}} {{enumUtils.toPlanBlueprintSystemFieldTypeString(field.systemFieldType)}}*
-
{{i + 1}}.{{j + 1}} {{field.referenceType.name}}*
-
{{i + 1}}.{{j + 1}} {{field.label}}*
+
{{i + 1}}.{{j + 1}} {{enumUtils.toPlanBlueprintSystemFieldTypeString(field.systemFieldType)}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
+
{{i + 1}}.{{j + 1}} {{field.referenceType.name}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +
+
{{i + 1}}.{{j + 1}} {{field.label}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} +