2017-10-18 18:30:39 +02:00
|
|
|
<div style="margin: auto; max-width: 1000px; margin-top:50px">
|
2017-10-18 20:30:55 +02:00
|
|
|
<data-table id="films-grid" headerTitle="Datasets" [items]="datasets" [itemCount]="datasetCount" (reload)="reloadDatasets($event)"
|
2017-10-30 17:37:17 +01:00
|
|
|
[limit]="8" [sortBy]="'name'" [sortAsc]="false" [substituteRows]="false"
|
2017-10-30 15:56:50 +01:00
|
|
|
[translations]="translations" >
|
2017-10-18 20:58:58 +02:00
|
|
|
|
2017-10-18 20:30:55 +02:00
|
|
|
<data-table-column [property]="'name'" [header]="'Label'" [sortable]="true">
|
2017-10-18 18:30:39 +02:00
|
|
|
</data-table-column>
|
2017-10-30 15:56:50 +01:00
|
|
|
<data-table-column [property]="'dmp'" [header]="'DMP'" [sortable]="true">
|
|
|
|
</data-table-column>
|
|
|
|
<data-table-column [property]="'profile'" [header]="'Profile'" [sortable]="true">
|
2017-10-18 18:30:39 +02:00
|
|
|
</data-table-column>
|
2017-10-18 20:30:55 +02:00
|
|
|
<data-table-column [property]="'uriDataset'" [header]="'Uri'" [sortable]="true">
|
2017-10-18 18:30:39 +02:00
|
|
|
</data-table-column>
|
2017-10-18 20:30:55 +02:00
|
|
|
<!-- <data-table-column [property]="'definition'" [header]="'Definition'" [sortable]="true">
|
|
|
|
</data-table-column> -->
|
2017-10-30 15:56:50 +01:00
|
|
|
<data-table-column header="Actions">
|
|
|
|
<template #dataTableHeader let-item="item">
|
|
|
|
<i>Actions</i>
|
|
|
|
</template>
|
|
|
|
<template #dataTableCell let-item="item">
|
|
|
|
<a class="editGridColumn" (click) = "editRow(item)"><i class="fa fa-pencil fa-fw"></i></a> <!--data-toggle="modal" data-target="#exampleModalDmps" -->
|
|
|
|
</template>
|
|
|
|
</data-table-column>
|
|
|
|
<data-table-column header="Edit">
|
|
|
|
<template #dataTableHeader let-item="item">
|
|
|
|
<i>Edit</i>
|
|
|
|
</template>
|
|
|
|
<template #dataTableCell let-item="item">
|
2017-10-31 11:19:16 +01:00
|
|
|
<a class="editGridColumn" (click) = "selectDataset(item)"><i class="fa fa-file-text fa-fw"></i></a> <!--data-toggle="modal" data-target="#exampleModalDmps" -->
|
2017-10-30 15:56:50 +01:00
|
|
|
</template>
|
|
|
|
</data-table-column>
|
2017-10-18 18:30:39 +02:00
|
|
|
</data-table>
|
|
|
|
<div style="margin-top: 10px">
|
2017-10-30 15:56:50 +01:00
|
|
|
<button type="button" class="btn btn-info" (click) = "newDataset(item)" >New Dataset</button> <!-- data-toggle="modal" data-target="#newDatasetModal" -->
|
2017-10-18 21:32:48 +02:00
|
|
|
<!-- <b>Selected:</b>
|
2017-10-18 18:30:39 +02:00
|
|
|
<span *ngIf="projectsTable.selectedRow == null"><i>No item selected</i></span>
|
2017-10-18 21:32:48 +02:00
|
|
|
<span [textContent]="projectsTable.selectedRow && projectsTable.selectedRow.item.name"></span> -->
|
|
|
|
</div>
|
|
|
|
|
2017-10-27 16:08:10 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal fade" id="newDatasetModal" tabindex="-1" role="dialog" aria-labelledby="newDatasetModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2017-10-31 11:19:16 +01:00
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Dataset</h5>
|
2017-10-27 16:08:10 +02:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form #newProjectForm="ngForm" (ngSubmit)="SaveNewDmp()">
|
|
|
|
<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" #datasetfield>
|
|
|
|
<option *ngFor="let opt of datasetProfileDropDown.options" [value]="opt.key">{{opt.value}}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="label-name" class="form-control-label">Label:</label>
|
|
|
|
<input type="text" class="form-control" id="label-name" [(ngModel)]= "dataset.label" name = "label">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-10-30 15:56:50 +01:00
|
|
|
<label for="abbreviation-text" class="form-control-label">DMP:</label>
|
|
|
|
<input class="form-control" id="abbreviation-text" [(ngModel)]= "dataset.dmp" name = "dmp">
|
2017-10-27 16:08:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="uri-text" class="form-control-label">Uri:</label>
|
|
|
|
<input class="form-control" id="uri-text" [(ngModel)]= "dataset.uri" name = "uri">
|
|
|
|
</div>
|
2017-10-30 15:56:50 +01:00
|
|
|
<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">
|
2017-10-27 16:08:10 +02:00
|
|
|
</div>
|
2017-10-30 15:56:50 +01:00
|
|
|
<!-- <div class="form-group">
|
2017-10-27 16:08:10 +02:00
|
|
|
<label for="end-date" class="form-control-label">End Date:</label>
|
|
|
|
<input class="form-control" id="endDate-date" [(ngModel)]= "dataset.endDate" name = "endDate">
|
|
|
|
</div> -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="code-name" class="form-control-label">Code:</label>
|
|
|
|
<input type="text" class="form-control" id="code-name" disabled>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
2017-10-30 17:37:17 +01:00
|
|
|
<button type="submit" class="btn btn-primary" (click)="SaveDataset();">Save Dmp</button>
|
2017-10-27 16:08:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-18 18:30:39 +02:00
|
|
|
</div>
|