dmp project

This commit is contained in:
annampak 2017-10-27 11:56:37 +03:00
parent fa10c43236
commit bfcb178c25
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ myFunction() {
SaveNewDmp(){
console.log(this.dmp, this.dmp.projectsDropDownKey);
console.log(this.dmp, this.dmp.projectsDropDownKey); debugger;
//this.http.post('http://someurl', JSON.stringify(this.project))
this.serverService.createDmpForProject(this.dmp)
.subscribe(

View File

@ -64,7 +64,7 @@
<form #newProjectForm="ngForm" (ngSubmit)="SaveNewDmp()">
<div class="form-group">
<label for="recipient-name" class="col-form-label">Project:</label>
<select class="form-control" [id]="projectsDropDownKey" [(ngModel)]="dmp.id" [name]="projectsDropDown" #datasetfield>
<select class="form-control" [id]="projectsDropDownKey" [(ngModel)]="dmp.project" [name]="projectsDropDown" #datasetfield>
<option *ngFor="let opt of projectsDropDown.options" [value]="opt.key">{{opt.value}}</option>
</select>
</div>