2017-10-25 15:17:16 +02:00
|
|
|
|
<meta name="google-signin-client_id" content="524432312250-vhgidft856v8qftsc81kls4c74v87d8o.apps.googleusercontent.com">
|
2017-10-23 15:09:50 +02:00
|
|
|
|
|
|
|
|
|
|
2017-11-01 11:15:36 +01:00
|
|
|
|
<table class="table table-striped" [mfData]="tableData | projectTableFilter : filterQuery"
|
2017-11-01 10:56:35 +01:00
|
|
|
|
#mf="mfDataTable" [mfRowsOnPage]="rowsOnPage" [(mfSortBy)]="sortBy" [(mfSortOrder)]="sortOrder">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th colspan="1">
|
|
|
|
|
<input class="form-control" [(ngModel)]="filterQuery" placeholder='Filter' />
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="btn btn-default" (click)="refreshTable($event)">
|
|
|
|
|
<span class="glyphicon glyphicon-refresh"></span>
|
|
|
|
|
</button>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th [ngClass]="{true:'visible', false:'invisible'}[showIDs]">
|
|
|
|
|
<mfDefaultSorter by="id">ID</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter by="label">Label</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter by="abbreviation">Αbbreviation</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter by="startDate">Start Date</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter by="endDate">End Date</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter by="description">Description</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter by="status">Status</mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<mfDefaultSorter>Actions </mfDefaultSorter>
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr class="grayout-empty-table" *ngIf="!mf.data[0]">
|
|
|
|
|
<td colspan="7">No elements</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr *ngFor="let project of mf.data" class="hover">
|
|
|
|
|
<td [ngClass]="{true:'visible', false:'invisible'}[showIDs]">{{dmp.id}}</td>
|
|
|
|
|
<td>{{project?.label}}</td>
|
|
|
|
|
<td>{{project?.abbreviation}}</td>
|
|
|
|
|
<td>{{project?.startDate}}</td>
|
|
|
|
|
<td>{{project?.endDate}}</td>
|
|
|
|
|
<td>{{project?.description}}</td>
|
|
|
|
|
<td>{{project?.status}}</td>
|
|
|
|
|
<td><a class="editGridColumn" (click)="editRow(dmp, $event)"><i class="fa fa-pencil fa-fw" data-toggle="tooltip" title="edit properties" id="editDMP"></i>
|
|
|
|
|
<i class="fa fa-clone fa-fw" data-toggle="tooltip" title="create new version" id="changeVersionDMP"></i>
|
|
|
|
|
<i class="fa fa-eraser fa-fw" data-toggle="tooltip" title="delete DMP"></i>
|
|
|
|
|
<i class="fa fa-table fa-fw" data-toggle="tooltip" title="show dataset for this DMP" id="showDatasets"></i></a></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tfoot>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="7">
|
|
|
|
|
<button type="button" class="btn btn-info btncustom" (click)="newDmp(item)">New Dmp</button>
|
|
|
|
|
<mfBootstrapPaginator [rowsOnPageSet]="[5,20,40]"></mfBootstrapPaginator>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tfoot>
|
|
|
|
|
</table>
|
2017-10-19 16:33:12 +02:00
|
|
|
|
|
2017-10-23 15:09:50 +02:00
|
|
|
|
|
2017-10-19 16:33:12 +02:00
|
|
|
|
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Create New Project</h5>
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
2017-10-23 18:16:04 +02:00
|
|
|
|
<form #newProjectForm="ngForm" (ngSubmit)="SaveNewProject()">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="label-name" class="form-control-label">Label:</label>
|
2017-10-24 11:49:02 +02:00
|
|
|
|
<input type="text" class="form-control" id="label-name" [(ngModel)]= "project.label" name = "label">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="abbreviation-text" class="form-control-label">Abbreviation:</label>
|
2017-10-24 11:49:02 +02:00
|
|
|
|
<input class="form-control" id="abbreviation-text" [(ngModel)]= "project.abbreviation" name = "abbreviation">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="reference-text" class="form-control-label">Reference:</label>
|
2017-10-24 11:49:02 +02:00
|
|
|
|
<input class="form-control" id="reference-text" [(ngModel)]= "project.reference" name = "reference">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="uri-text" class="form-control-label">Uri:</label>
|
2017-10-24 11:49:02 +02:00
|
|
|
|
<input class="form-control" id="uri-text" [(ngModel)]= "project.uri" name = "uri">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="start-date" class="form-control-label">Start Date:</label>
|
2017-10-24 11:49:02 +02:00
|
|
|
|
<input class="form-control" id="startDate-date" [(ngModel)]= "project.startDate" name = "startDate">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="end-date" class="form-control-label">End Date:</label>
|
2017-10-24 11:49:02 +02:00
|
|
|
|
<input class="form-control" id="endDate-date" [(ngModel)]= "project.endDate" name = "endDate">
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</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-23 18:16:04 +02:00
|
|
|
|
<button type="submit" class="btn btn-primary" (click)="SaveNewProject();">Save project</button>
|
2017-10-19 16:33:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-10-18 18:30:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
2017-10-23 15:09:50 +02:00
|
|
|
|
<!--Modal for DMPs-->
|
2017-10-25 15:17:16 +02:00
|
|
|
|
<modal *ngIf="item && show" [(show)]="show" [item]="item" [(dataSetVisibe)]="dataSetVisibe"></modal>
|
2017-10-23 15:09:50 +02:00
|
|
|
|
|
|
|
|
|
<!--DATASET TABLE-->
|
2017-10-25 15:17:16 +02:00
|
|
|
|
<datasets-table *ngIf="dataSetVisibe" [(dataSetVisibe)]="dataSetVisibe"></datasets-table> <!--*ngIf="dataSetVisibe == true"-->
|
2017-10-23 15:09:50 +02:00
|
|
|
|
|
2017-10-25 15:17:16 +02:00
|
|
|
|
<a href="#" (click)="signOut();" #isignOutBtn >Sign out</a>
|
2017-10-19 16:33:12 +02:00
|
|
|
|
<router-outlet></router-outlet>
|