diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts
index a4aaf654f..276639b3a 100644
--- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts
+++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts
@@ -78,6 +78,7 @@ export class DescriptionTemplateEditorComponent extends BaseEditor
{
- // return {
- // id: editorField.id,
- // ordinal: editorField.ordinal,
- // numbering: '',
- // schematics: editorField.schematics,
- // defaultValue: editorField.defaultValue,
- // visibilityRules: editorField.visibilityRules,
- // validations: editorField.validations,
- // includeInExport: editorField.includeInExport,
- // data: editorField.data
- // }
- // });
-
- // const fieldSet: DescriptionTemplateFieldSet = {
- // id: formValue.id,
- // ordinal: formValue.ordinal,
- // numbering: '',
- // title: formValue.title,
- // description: formValue.description,
- // extendedDescription: formValue.extendedDescription,
- // additionalInformation: formValue.additionalInformation,
- // multiplicity: {
- // max: formValue.multiplicity.max, min: formValue.multiplicity.min,
- // placeholder: formValue.multiplicity.placeholder, tableView: formValue.multiplicity.tableView
- // },
- // hasCommentField: formValue.hasCommentField,
- // fields: fields
- // }
-
- // const mockDescription: Description = {
- // descriptionTemplate: {
- // definition: {
- // pages: [
- // {
- // sections: [{
- // fieldSets: [fieldSet]
- // }]
- // }
- // ]
- // }
- // }
- // }
-
- // const descriptionEditorModel = new DescriptionEditorModel().fromModel(mockDescription, mockDescription.descriptionTemplate);
- // this.previewPropertiesFormGroup = descriptionEditorModel.properties.fieldSets.get(fieldSet.id).buildForm() as UntypedFormGroup;
- // this.previewFieldSet = fieldSet;
- // let data = this.form.getRawValue();
- // this.datasetProfileService.preview(data).subscribe(x => {
- // this.datasetWizardModel = new DatasetWizardEditorModel().fromModel({
- // datasetProfileDefinition: x
- // });
- // this.updateVisibilityRules();
- // this.formGroup = this.datasetWizardModel.buildForm().get('datasetProfileDefinition');
- // });
+ this.finalPreviewDescriptionTemplatePersist = this.formGroup.getRawValue();
}
//
diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html
index 97ac3dbac..b1bed6675 100644
--- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html
+++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html
@@ -3,7 +3,7 @@