From b4f596d6398c1a5d0b2d7d5b3018f3e8ff99a460 Mon Sep 17 00:00:00 2001 From: annampak Date: Wed, 1 Nov 2017 17:42:01 +0200 Subject: [PATCH 1/2] toc responsive --- dmp-frontend/src/app/datasets/dataset.html | 8 ++++---- dmp-frontend/src/app/dmps/dmp.component.ts | 4 ++++ dmp-frontend/src/app/dmps/dmps.html | 14 +++++++------- .../src/app/form/dynamic-form.component.html | 6 +++--- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/dmp-frontend/src/app/datasets/dataset.html b/dmp-frontend/src/app/datasets/dataset.html index 8ffe6586f..490077f35 100644 --- a/dmp-frontend/src/app/datasets/dataset.html +++ b/dmp-frontend/src/app/datasets/dataset.html @@ -25,10 +25,7 @@ Label - - - Status - + Uri @@ -38,6 +35,9 @@ Description + + Status + Actions diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index b4f981f99..b4d2a5948 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -55,6 +55,7 @@ export class DmpComponent implements OnInit{ @Input() dmpCount = 0; @Input() projectsDropDown:DropdownField; @Input() dataSetVisibe:boolean; + @Input() statusDropDown: DropdownField; //@Input() projects: Project[]; dmpIdforDatasets: string; dmpLabelforDatasets:string; @@ -73,6 +74,9 @@ export class DmpComponent implements OnInit{ private router: Router){ this.projectsDropDown = new DropdownField(); this.projectsDropDown.options = []; + this.statusDropDown = new DropdownField(); + this.statusDropDown.options =[]; + this.statusDropDown.options= [{key:'0', value:"active"},{key:'1', value:"inactive"}] //this.projects = []; this.dmpTableVisible = false; this.dataSetVisibe = false; diff --git a/dmp-frontend/src/app/dmps/dmps.html b/dmp-frontend/src/app/dmps/dmps.html index 14e01277d..b5fd6449a 100644 --- a/dmp-frontend/src/app/dmps/dmps.html +++ b/dmp-frontend/src/app/dmps/dmps.html @@ -99,12 +99,12 @@ - +
+ + +
@@ -115,7 +115,7 @@
- +

Table of contents:

From a2224acac59645444b9cf19294a44d0df0f8f652 Mon Sep 17 00:00:00 2001 From: annampak Date: Wed, 1 Nov 2017 17:54:14 +0200 Subject: [PATCH 2/2] load different datasets --- dmp-frontend/src/app/datasets/dataset.component.ts | 13 +------------ dmp-frontend/src/app/dmps/dmps.html | 4 ++-- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/dmp-frontend/src/app/datasets/dataset.component.ts b/dmp-frontend/src/app/datasets/dataset.component.ts index 976c8d77f..39b24b50b 100644 --- a/dmp-frontend/src/app/datasets/dataset.component.ts +++ b/dmp-frontend/src/app/datasets/dataset.component.ts @@ -159,18 +159,7 @@ export class DatasetsComponent implements OnInit { getDatasetForDmpMethod(dmpid) { this.serverService.getDatasetForDmp({ "id": dmpid }).subscribe( response => { - - console.log("response"); - console.log(response); - this.datasets = []; - response.forEach(resp => { - - let dt = new Dataset(); - dt.id = resp.id; - dt.name = resp.label; - dt.uriDataset = resp.uri; - this.datasets.push(dt); - }); + this.tableData = response; } ); } diff --git a/dmp-frontend/src/app/dmps/dmps.html b/dmp-frontend/src/app/dmps/dmps.html index b5fd6449a..f338b7428 100644 --- a/dmp-frontend/src/app/dmps/dmps.html +++ b/dmp-frontend/src/app/dmps/dmps.html @@ -1,6 +1,6 @@ -
+ @@ -75,7 +75,7 @@
-
+