From 8b45ee554825874a66f989741481ac23af512eef Mon Sep 17 00:00:00 2001 From: dtziotzios Date: Tue, 29 Jan 2019 18:34:19 +0200 Subject: [PATCH] Validation to Ids and New Component Component-Profile-Editor-default-value delete row in radioBox add To i18.enJson --- .../admin/field-editor-model.ts | 5 -- .../admin/page-editor-model.ts | 6 +- .../dataset-profile/dataset-profile.module.ts | 5 +- ...file-editor-composite-field.component.html | 55 ++++++++++++------ ...rofile-editor-default-value.component.html | 56 +++++++++++++++++++ ...rofile-editor-default-value.component.scss | 3 + ...-profile-editor-default-value.component.ts | 29 ++++++++++ ...file-editor-radio-box-field.component.html | 5 +- ...rofile-editor-radio-box-field.component.ts | 4 ++ ...file-editor-text-area-field.component.html | 8 ++- ...ataset-profile-editor-field.component.html | 48 +++++++++++----- ...dataset-profile-editor-page.component.html | 6 +- ...dataset-profile-editor-rule.component.html | 28 ++++++---- .../dataset-profile-editor-rule.component.ts | 10 +++- ...aset-profile-editor-section.component.html | 29 +++++++--- .../dataset-profile-editor.component.html | 14 +++-- .../form-field/form-field.component.html | 23 +++++--- dmp-frontend/src/assets/i18n/en.json | 31 +++++++--- 18 files changed, 274 insertions(+), 91 deletions(-) create mode 100644 dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.html create mode 100644 dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.scss create mode 100644 dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.ts diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/admin/field-editor-model.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/admin/field-editor-model.ts index 83815402b..0dd88dd60 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/admin/field-editor-model.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/admin/field-editor-model.ts @@ -57,11 +57,6 @@ export class FieldEditorModel extends BaseFormModel { page: [this.page], ordinal: [this.ordinal] }); - let valid = ValidationType.None; - if (this.validations && this.validations[0] === 1) { valid = ValidationType.Required; } - const arr = new FormArray([ - new FormControl(valid) - ]); // formGroup.addControl("multiplicity", this.multiplicity.buildForm()); formGroup.addControl('validations', new FormControl(this.validations)); diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/admin/page-editor-model.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/admin/page-editor-model.ts index 87a0a345a..5b88d48b3 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/admin/page-editor-model.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/admin/page-editor-model.ts @@ -1,4 +1,4 @@ -import { FormGroup } from '@angular/forms'; +import { FormGroup, Validators } from '@angular/forms'; import { Page } from '../../../../core/model/admin/dataset-profile/dataset-profile'; import { BaseFormModel } from '../../../../core/model/base-form-model'; import { Guid } from '../../../../common/types/guid'; @@ -23,8 +23,8 @@ export class PageEditorModel extends BaseFormModel { buildForm(): FormGroup { const formGroup = this.formBuilder.group({ - title: [this.title], - id: [this.id], + title: [this.title, [Validators.required]], + id: [this.id, [Validators.required]], ordinal: [this.ordinal] }); return formGroup; diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts index 3d8968f85..b976e321c 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts @@ -3,6 +3,7 @@ import { CommonFormsModule } from '../../../common/forms/common-forms.module'; import { CommonUiModule } from '../../../common/ui/common-ui.module'; import { FormattingModule } from '../../../core/formatting.module'; import { DatasetProfileRoutingModule } from './dataset-profile.routing'; +import { DatasetProfileEditorDefaultValueComponent } from './editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component'; import { DatasetProfileEditorCompositeFieldComponent } from './editor/components/composite-field/dataset-profile-editor-composite-field.component'; import { DatasetProfileEditorAutoCompleteFieldComponent } from './editor/components/field-type/auto-complete/dataset-profile-editor-auto-complete-field.component'; import { DatasetProfileEditorBooleanDecisionFieldComponent } from './editor/components/field-type/boolean-decision/dataset-profile-editor-boolean-decision-field.component'; @@ -43,7 +44,9 @@ import { DatasetProfileListingComponent } from './listing/dataset-profile-listin DatasetProfileEditorFreeTextFieldComponent, DatasetProfileEditorRadioBoxFieldComponent, DatasetProfileEditorTextAreaFieldComponent, - DatasetProfileEditorWordListFieldComponent + DatasetProfileEditorWordListFieldComponent, + DatasetProfileEditorDefaultValueComponent + ], entryComponents: [ ] diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-field/dataset-profile-editor-composite-field.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-field/dataset-profile-editor-composite-field.component.html index 9ddcd688c..bd7ba077f 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-field/dataset-profile-editor-composite-field.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-field/dataset-profile-editor-composite-field.component.html @@ -1,41 +1,61 @@
-

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.TITLE' | translate}}

-

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.SIMPLE-FIELD-TITLE' | translate}}

- {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.COMPOSITE-CHECKBOX' | translate}} - {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.MULTIPLICITY-CHECKBOX' | translate}} - {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.COMMENT-CHECKBOX' | translate}} +

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.TITLE' + | translate}}

+

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.SIMPLE-FIELD-TITLE' + | translate}}

+ {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.COMPOSITE-CHECKBOX' + | translate}} + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.MULTIPLICITY-CHECKBOX' + | translate}} + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.COMMENT-CHECKBOX' + | translate}}
- + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} - + - + - + + {{'GENERAL.VALIDATION.REQUIRED' | + translate}} - + + {{'GENERAL.VALIDATION.REQUIRED' | + translate}} + - +
- + - + - +
-

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.SUB-FIELDS-TITLE' | translate}}

+

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.SUB-FIELDS-TITLE' | + translate}}

@@ -51,5 +71,6 @@
-
- +
+ \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.html new file mode 100644 index 000000000..db6789be3 --- /dev/null +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.html @@ -0,0 +1,56 @@ +
+ + + + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.BOOLEAN-DECISION.YES' | + translate}} + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.BOOLEAN-DECISION.NO' | + translate}} + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + + + + + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.CHECK-BOX.CHECKED' | + translate}} + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.CHECK-BOX.UNCHECKED' | + translate}} + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + + + + + + + + {{opt.get('label').value}} + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + + + + + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + + + + + {{opt.get('label').value}} + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + + + + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + +
\ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.scss b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.scss new file mode 100644 index 000000000..946679a44 --- /dev/null +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.scss @@ -0,0 +1,3 @@ +.full-width{ + width: 100%; +} \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.ts new file mode 100644 index 000000000..f20085697 --- /dev/null +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/composite-profile-editor-default-value/component-profile-editor-default-value.component.ts @@ -0,0 +1,29 @@ +import { Component, Input, OnInit } from '@angular/core'; +import { FormArray, FormControl } from '@angular/forms'; +import { DatasetProfileComboBoxType } from '../../../../../../core/common/enum/dataset-profile-combo-box-type'; +import { DatasetProfileFieldViewStyle } from '../../../../../../core/common/enum/dataset-profile-field-view-style'; + +@Component({ + selector: 'app-component-profile-editor-default-value-component', + templateUrl: './component-profile-editor-default-value.component.html', + styleUrls: ['./component-profile-editor-default-value.component.scss'] +}) +export class DatasetProfileEditorDefaultValueComponent implements OnInit { + + @Input() viewStyle: DatasetProfileFieldViewStyle; + @Input() form: FormControl; + @Input() formArrayOptions: FormArray; + @Input() comboBoxType: DatasetProfileComboBoxType; + @Input() placeHolder: String; + @Input() required: Boolean; + + + comboBoxTypeEnum = DatasetProfileComboBoxType; + viewStyleEnum = DatasetProfileFieldViewStyle; + + constructor() { } + + ngOnInit() { + } + +} diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.html index 4468067e2..1309c55b7 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.html @@ -8,12 +8,13 @@
- + - + +
diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.ts index 66a9c8461..3f9c8176d 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/radio-box/dataset-profile-editor-radio-box-field.component.ts @@ -22,4 +22,8 @@ export class DatasetProfileEditorRadioBoxFieldComponent implements OnInit { if (!this.form.get('data').get('options')) { (this.form.get('data')).addControl('options', new FormBuilder().array([])); } (this.form.get('data').get('options')).push(radioListOptions.buildForm()); } + + deleteRow(intex: number) { + if (this.form.get('data').get('options')) { (this.form.get('data').get('options')).removeAt(intex); } + } } diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/textarea/dataset-profile-editor-text-area-field.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/textarea/dataset-profile-editor-text-area-field.component.html index 1ab7e71c1..bb2b107c7 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/textarea/dataset-profile-editor-text-area-field.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field-type/textarea/dataset-profile-editor-text-area-field.component.html @@ -1,8 +1,10 @@
-
{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-TEXT-AREA-TITLE' | translate}}
+
{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-TEXT-AREA-TITLE' + | translate}}
- + -
+
\ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html index 8e1525dbb..17a738277 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html @@ -1,10 +1,13 @@
- + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} - + {{enumUtils.toDatasetProfileFieldViewStyleString(viewStyleEnum.BooleanDecision)}} {{enumUtils.toDatasetProfileFieldViewStyleString(viewStyleEnum.CheckBox)}} {{enumUtils.toDatasetProfileFieldViewStyleString(viewStyleEnum.ComboBox)}} @@ -12,26 +15,36 @@ {{enumUtils.toDatasetProfileFieldViewStyleString(viewStyleEnum.RadioBox)}} {{enumUtils.toDatasetProfileFieldViewStyleString(viewStyleEnum.TextArea)}} + {{'GENERAL.VALIDATION.REQUIRED' + | translate}} - + + + + - - - - + {{enumUtils.toDatasetProfileFieldValidationTypeString(validationTypeEnum.Required)}}
- {{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.MULTIPLICITY-CHECKBOX' | translate}} + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.MULTIPLICITY-CHECKBOX' + | translate}} - + - +
@@ -39,11 +52,16 @@ - +
-

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.RULES-TITLE' | translate}}

- -
-
+

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.RULES-TITLE' | + translate}}

+ +
+ \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/page/dataset-profile-editor-page.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/page/dataset-profile-editor-page.component.html index 9f79d729e..89f3d5ab2 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/page/dataset-profile-editor-page.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/page/dataset-profile-editor-page.component.html @@ -2,10 +2,12 @@ {{'DATASET-PROFILE-EDITOR.STEPS.PAGES.PAGE-PREFIX' | translate}} {{i + 1}}
- + + {{'GENERAL.VALIDATION.REQUIRED' | translate}}
- + \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.html index 5b8e30f84..efb53db32 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.html @@ -1,18 +1,24 @@
{{i + 1}} - - - - - - + + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.RULE.FIELDS.RULE-IF'| translate}} + + + + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.RULE.FIELDS.RULE-THEN'| translate}} + + + + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
-
+ \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.ts index 6f1d8710d..88a2b9623 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/rule/dataset-profile-editor-rule.component.ts @@ -1,5 +1,7 @@ import { Component, Input } from '@angular/core'; -import { FormArray } from '@angular/forms'; +import { FormArray, FormControl } from '@angular/forms'; +import { DatasetProfileFieldViewStyle } from '../../../../../../core/common/enum/dataset-profile-field-view-style'; +import { DatasetProfileComboBoxType } from '../../../../../../core/common/enum/dataset-profile-combo-box-type'; @Component({ selector: 'app-dataset-profile-editor-rule-component', @@ -11,6 +13,12 @@ export class DatasetProfileEditorRuleComponent { @Input() form: FormArray; + @Input() viewStyleForCheck: DatasetProfileFieldViewStyle; + @Input() formControlForCheck: FormControl; + @Input() formArrayOptionsForCheck: FormArray; + @Input() comboBoxTypeForCheck: DatasetProfileComboBoxType; + + targetValidation() { //TODO } diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html index 52d24c71c..fea89c06f 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html @@ -2,18 +2,24 @@

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.TITLE' | translate}}

- + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} - + - + {{pageGroup.get('title').value}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} - + -

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.FIELDS-TITLE' | translate}}

+

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.FIELDS-TITLE' | + translate}}

@@ -35,9 +42,11 @@
-
+
-

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.SUB-SECTIONS-TITLE' | translate}}

+

{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.SUB-SECTIONS-TITLE' | + translate}}

@@ -49,10 +58,12 @@
- +
-
+
\ No newline at end of file diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html index c910e750d..c11d16c39 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html @@ -1,6 +1,7 @@ 
- + {{'GENERAL.VALIDATION.REQUIRED' | translate}} @@ -9,7 +10,8 @@ {{'DATASET-PROFILE-EDITOR.STEPS.PAGES.TITLE' | translate}}
-
+
@@ -24,11 +26,13 @@
- +
-
+
- + \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.html b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.html index d6250988e..ca68f2f8d 100644 --- a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.html +++ b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.html @@ -1,4 +1,5 @@ -
+
{{this.form.get('title').value}}
@@ -14,12 +15,14 @@
- + {{'GENERAL.VALIDATION.REQUIRED' | translate}} - + {{opt.label}} {{'GENERAL.VALIDATION.REQUIRED' | translate}} @@ -32,11 +35,14 @@
- - - {{'GENERAL.VALIDATION.REQUIRED' | translate}} + {{'GENERAL.VALIDATION.REQUIRED' + | translate}}
@@ -49,7 +55,8 @@
- {{option.label}} + {{option.label}}
-
+
\ No newline at end of file diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index 4ddeba2e7..dfc93c5d4 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -2,7 +2,7 @@ "GENERAL": { "VALIDATION": { "REQUIRED": "Required", - "PROJECT-START-AFTER-END":"Project start date cannot be after the end date" + "PROJECT-START-AFTER-END": "Project start date cannot be after the end date" }, "DELETE-CONFIRMATION": { "TITLE": "Warning", @@ -29,12 +29,12 @@ "FINALISED": "Finalized" }, "CONFIRMATION-DIALOG": { - "DELETE-ITEM": "Delete this item?", - "ACTIONS": { - "CONFIRM": "Yes", - "CANCEL": "No" - } - } + "DELETE-ITEM": "Delete this item?", + "ACTIONS": { + "CONFIRM": "Yes", + "CANCEL": "No" + } + } }, "NAV-BAR": { "TITLE": "OpenDMP", @@ -101,6 +101,7 @@ "FIELD": { "FIELDS": { "RULES-TITLE": "Visibility Rules", + "FIELD-RULES-VALUE": "Value", "ID": "Section Unique Identifier", "VIEW-STYLE": "Type", "MULTIPLICITY-MIN": "Multiplicity Min", @@ -133,6 +134,16 @@ "FIELD-AUTOCOMPLETE-URL": "Url", "FIELD-AUTOCOMPLETE-OPTIONS-ROOT": "Options Root" }, + "DEFAULT-VALUES": { + "BOOLEAN-DECISION": { + "YES": "YES", + "NO": "NO" + }, + "CHECK-BOX": { + "CHECKED": "Checked", + "UNCHECKED": "Uncheck" + } + }, "ACTIONS": { "ADD-RULE": "Add Visibility Rule +" } @@ -141,7 +152,9 @@ "FIELDS": { "RULE-TYPE": "Rule Type", "TARGET": "Target Field Id", - "VALUE": "Required Value" + "VALUE": "Required Value", + "RULE-IF": "If Value is", + "RULE-THEN": "then show Field With Id" } } } @@ -608,4 +621,4 @@ "AT-LEAST-ONE-DATASET-FINALISED": "You need to have at least one Dataset Finalized" } } -} +} \ No newline at end of file