diff --git a/dmp-admin/src/app/dataset-profile-form/section-form/section-form.component.ts b/dmp-admin/src/app/dataset-profile-form/section-form/section-form.component.ts index efe3357dc..ffa4723ac 100644 --- a/dmp-admin/src/app/dataset-profile-form/section-form/section-form.component.ts +++ b/dmp-admin/src/app/dataset-profile-form/section-form/section-form.component.ts @@ -67,7 +67,7 @@ export class SectionFormComponent { DeleteFieldSet(index){ this.dataModel.fieldSets.splice(index, 1); - (this.form.get("compositeFields")).removeAt(index); + (this.form.get("fieldSets")).removeAt(index); } keepPageSelectionValid(pagesJson: Array) { diff --git a/dmp-frontend/src/app/form/dynamic-form.component.css b/dmp-frontend/src/app/form/dynamic-form.component.css index c72073e18..b4fb96bb9 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.css +++ b/dmp-frontend/src/app/form/dynamic-form.component.css @@ -18,8 +18,13 @@ min-width: 10%; } -ng-sidebar-container { +.ng-sidebar-container { overflow: inherit !important; + position: fixed !important; + height: 100%; + min-height: 100%; + width: 100%; + min-width: 100%; } /* .ng-sidebar__content { @@ -42,4 +47,13 @@ ng-sidebar-container { margin: 20px 0; - } \ No newline at end of file + } + + .full-width{ + width:100%; + } + + .full-height{ + height:100%; + } + diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index 1b2a80ab0..f19765878 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -1,31 +1,46 @@ -
- - +
+ + - - + + + style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;" type="submit">Save -
+
-
+
-
+
-
+ +
+
+
+ + + {{section.title}} +
+ +
+
+
+
+
+
+
diff --git a/dmp-frontend/src/app/form/dynamic-form.component.ts b/dmp-frontend/src/app/form/dynamic-form.component.ts index 992491df3..2bc2340d7 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.ts +++ b/dmp-frontend/src/app/form/dynamic-form.component.ts @@ -93,7 +93,7 @@ export class DynamicFormComponent implements OnInit { submit() { } - save(){ + onSubmit(){ this.datasetWizardService.saveDataset(this.datasetId, this.form.value).subscribe(data => { this.router.navigateByUrl("/datasets"); });