diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html
index 3cf06e4121..fc115e043a 100644
--- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html
+++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html
@@ -11,7 +11,7 @@
0)}">
-
+
{
[bindId]='bindId'
[group]='group'
[model]='model'
+ [legend]='legend'
(blur)='onBlur($event)'
(change)='onValueChange($event)'
(focus)='onFocus($event)'>`;
diff --git a/src/app/shared/testing/dynamic-form-mock-services.ts b/src/app/shared/testing/dynamic-form-mock-services.ts
index 2cf705ff90..1cbd470e23 100644
--- a/src/app/shared/testing/dynamic-form-mock-services.ts
+++ b/src/app/shared/testing/dynamic-form-mock-services.ts
@@ -1,5 +1,6 @@
export const mockDynamicFormLayoutService = jasmine.createSpyObj('DynamicFormLayoutService', {
- getElementId: jasmine.createSpy('getElementId')
+ getElementId: jasmine.createSpy('getElementId'),
+ getClass: 'class',
});
export const mockDynamicFormValidationService = jasmine.createSpyObj('DynamicFormValidationService', {
diff --git a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts
index 300a4b461f..14886128a5 100644
--- a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts
+++ b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts
@@ -74,7 +74,7 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePicke
required: null
},
errorMessages: {
- required: 'submission.sections.upload.form.date-required'
+ required: 'submission.sections.upload.form.date-required-from'
}
};
export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_LAYOUT: DynamicFormControlLayout = {
@@ -104,7 +104,7 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerM
required: null
},
errorMessages: {
- required: 'submission.sections.upload.form.date-required'
+ required: 'submission.sections.upload.form.date-required-until'
}
};
export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_LAYOUT: DynamicFormControlLayout = {
diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5
index 4b6356f556..f3f09da1d4 100644
--- a/src/assets/i18n/en.json5
+++ b/src/assets/i18n/en.json5
@@ -3599,6 +3599,10 @@
"submission.sections.upload.form.date-required": "Date is required.",
+ "submission.sections.upload.form.date-required-from": "Grant access from date is required.",
+
+ "submission.sections.upload.form.date-required-until": "Grant access until date is required.",
+
"submission.sections.upload.form.from-label": "Grant access from",
"submission.sections.upload.form.from-placeholder": "From",