Skip to content

Commit f991b4e

Browse files
committed
[CST-4506] Fix item access condition form layout
1 parent 6c720b8 commit f991b4e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/app/submission/sections/accesses/section-accesses.model.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const ACCESS_CONDITION_GROUP_CONFIG: DynamicFormGroupModelConfig = {
3131

3232
export const ACCESS_CONDITION_GROUP_LAYOUT: DynamicFormControlLayout = {
3333
element: {
34-
host: 'form-group flex-fill access-condition-group',
34+
host: 'form-group access-condition-group col',
3535
container: 'pl-1 pr-1',
3636
control: 'form-row '
3737
}
@@ -49,7 +49,8 @@ export const ACCESS_CONDITIONS_FORM_ARRAY_LAYOUT: DynamicFormControlLayout = {
4949

5050
export const FORM_ACCESS_CONDITION_TYPE_CONFIG: DynamicSelectModelConfig<any> = {
5151
id: 'name',
52-
label: 'submission.sections.upload.form.access-condition-label',
52+
label: 'submission.sections.accesses.form.access-condition-label',
53+
hint: 'submission.sections.accesses.form.access-condition-hint',
5354
options: []
5455
};
5556
export const FORM_ACCESS_CONDITION_TYPE_LAYOUT: DynamicFormControlLayout = {
@@ -61,8 +62,9 @@ export const FORM_ACCESS_CONDITION_TYPE_LAYOUT: DynamicFormControlLayout = {
6162

6263
export const FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePickerModelConfig = {
6364
id: 'startDate',
64-
label: 'submission.sections.upload.form.from-label',
65-
placeholder: 'submission.sections.upload.form.from-placeholder',
65+
label: 'submission.sections.accesses.form.from-label',
66+
hint: 'submission.sections.accesses.form.from-hint',
67+
placeholder: 'submission.sections.accesses.form.from-placeholder',
6668
inline: false,
6769
toggleIcon: 'far fa-calendar-alt',
6870
relations: [
@@ -77,7 +79,7 @@ export const FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePickerModelConf
7779
required: null
7880
},
7981
errorMessages: {
80-
required: 'submission.sections.upload.form.date-required-from'
82+
required: 'submission.sections.accesses.form.date-required-from'
8183
}
8284
};
8385
export const FORM_ACCESS_CONDITION_START_DATE_LAYOUT: DynamicFormControlLayout = {
@@ -91,8 +93,9 @@ export const FORM_ACCESS_CONDITION_START_DATE_LAYOUT: DynamicFormControlLayout =
9193

9294
export const FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerModelConfig = {
9395
id: 'endDate',
94-
label: 'submission.sections.upload.form.until-label',
95-
placeholder: 'submission.sections.upload.form.until-placeholder',
96+
label: 'submission.sections.accesses.form.until-label',
97+
hint: 'submission.sections.accesses.form.until-hint',
98+
placeholder: 'submission.sections.accesses.form.until-placeholder',
9699
inline: false,
97100
toggleIcon: 'far fa-calendar-alt',
98101
relations: [
@@ -107,7 +110,7 @@ export const FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerModelConfig
107110
required: null
108111
},
109112
errorMessages: {
110-
required: 'submission.sections.upload.form.date-required-until'
113+
required: 'submission.sections.accesses.form.date-required-until'
111114
}
112115
};
113116
export const FORM_ACCESS_CONDITION_END_DATE_LAYOUT: DynamicFormControlLayout = {

0 commit comments

Comments
 (0)