bug fixes in datasets and dmps dropdown fields
This commit is contained in:
parent
8874177986
commit
08310568a5
|
@ -92,7 +92,7 @@
|
|||
<form #newProjectForm="ngForm" (ngSubmit)="SaveDataset()">
|
||||
<div class="form-group">
|
||||
<label for="recipient-name" class="col-form-label">Dataset Profile:</label>
|
||||
<select class="form-control" [id]="datasetProfileDropDownKey" [(ngModel)]="dataset.profile" [name]="datasetProfileDropDown"
|
||||
<select class="form-control" id="datasetProfileDropDownKey" [(ngModel)]="dataset.profile" name="datasetProfileDropDown"
|
||||
#datasetfield>
|
||||
<option *ngFor="let opt of datasetProfileDropDown.options" [value]="opt.key">{{opt.value}}</option>
|
||||
</select>
|
||||
|
@ -109,6 +109,12 @@
|
|||
<label for="uri-text" class="form-control-label">Uri:</label>
|
||||
<input class="form-control" id="uri-text" [(ngModel)]="dataset.uri" name="uri">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status-name" class="col-form-label">Status:</label>
|
||||
<select class="form-control" id="statusid" [(ngModel)]="dataset.status" name="statusDropDown" #datasetfield>
|
||||
<option *ngFor="let opt of statusDropDown.options" [value]="opt.key">{{opt.value}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<label for="start-date" class="form-control-label">Properties:</label>
|
||||
<input class="form-control" id="startDate-date" [(ngModel)]= "dataset.properties" name = "properties">
|
||||
|
|
|
@ -82,7 +82,6 @@ export class DmpComponent implements OnInit{
|
|||
previous:'',
|
||||
version:'',
|
||||
profileData:''
|
||||
//,
|
||||
//profile:{}
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +184,12 @@ editRow(item, event){
|
|||
this.dmp.profileData = item.profileData;
|
||||
this.dmp.id = item.id;
|
||||
this.dmp.project = item.project.id;
|
||||
$("#newDmpModal").modal("show");
|
||||
this.dmp.description = item.description;
|
||||
this.dmp.status = item.status;
|
||||
setTimeout(function() {
|
||||
$("#newDmpModal").modal("show");
|
||||
},0);
|
||||
|
||||
}
|
||||
if(event.toElement.id == "changeVersionDMP"){
|
||||
this.dmp.label = item.label;
|
||||
|
@ -195,6 +199,7 @@ editRow(item, event){
|
|||
this.dmp.profileData = item.profileData;
|
||||
this.dmp.id = item.id;
|
||||
this.dmp.project = item.project.id;
|
||||
this.dmp.description = item.description;
|
||||
$("#newVersionDmpModal").modal("show");
|
||||
}
|
||||
|
||||
|
|
|
@ -103,13 +103,13 @@
|
|||
<input type="text" class="form-control" id="label-name" [(ngModel)]="dmp.label" name="label">
|
||||
</div>
|
||||
<label for="recipient-name" class="col-form-label">Project:</label>
|
||||
<select class="form-control" [id]="projectsDropDownKey" [(ngModel)]="dmp.project" [name]="projectsDropDown" #datasetfield>
|
||||
<select class="form-control" id="projectsDropDownKey" [(ngModel)]="dmp.project" name="projectsDropDown">
|
||||
<option *ngFor="let opt of projectsDropDown.options" [value]="opt.key">{{opt.value}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status-name" class="col-form-label">Status:</label>
|
||||
<select class="form-control" [id]="statusid" [(ngModel)]="dmp.status" [name]="statusDropDown" #datasetfield>
|
||||
<select class="form-control" id="statusid" [(ngModel)]="dmp.status" name="statusDropDown">
|
||||
<option *ngFor="let opt of statusDropDown.options" [value]="opt.key">{{opt.value}}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue