Revision 56889
Added by Antonis Lempesis over 4 years ago
adminPg-metrics.component.html | ||
---|---|---|
21 | 21 |
|
22 | 22 |
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div> |
23 | 23 |
<div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div> |
24 |
<div *ngIf="loadingMessage" class="loading-big"> |
|
25 |
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;"> |
|
26 |
{{ loadingMessage }} |
|
24 |
|
|
25 |
|
|
26 |
<div class="uk-grid"> |
|
27 |
<div class="uk-width-1-1@m uk-padding" style="background-color: #fff; text-align: center"> |
|
28 |
<form [formGroup]="dataForm" class="uk-search uk-search-default uk-width-1-1@m"> |
|
29 |
<input class="uk-width-1-2 uk-search-input" type="search" formControlName="searchField" placeholder="Search..." style="background-color: #fff"> |
|
30 |
<button class="uk-button" (click)="handleChangeAndResetPage()">Search</button> |
|
31 |
<div class="uk-position-right"> |
|
32 |
<button class="uk-button uk-button-primary" (click)="downloadCSV()">Export to CSV</button> |
|
33 |
</div> |
|
34 |
</form> |
|
27 | 35 |
</div> |
28 |
<div class="whiteFilm"></div> |
|
29 | 36 |
</div> |
30 |
<div *ngIf="piwiks && piwiks.length>0"> |
|
31 |
<table class="uk-table uk-table-striped uk-table-middle" style="font-size: 12px;"> |
|
32 |
<thead> |
|
33 |
<tr> |
|
34 |
<th class="uk-text-nowrap">Repository</th> |
|
35 |
<th class="uk-text-nowrap">Piwik site</th> |
|
36 |
<th class="uk-text-nowrap">Requested on</th> |
|
37 |
<th class="uk-text-nowrap">Requestor</th> |
|
38 |
<th class="uk-text-nowrap">Validated</th> |
|
39 |
<th class="uk-text-nowrap">Actions</th> |
|
40 |
</tr> |
|
41 |
</thead> |
|
42 |
<tbody> |
|
43 |
<tr class="el-item" *ngFor="let piwik of piwiks"> |
|
44 |
<td class="uk-table-shrink uk-text-truncate" style="min-width: 400px;"> |
|
45 |
{{ piwik.repositoryName }}<br>(ID: {{ piwik.repositoryId }}) |
|
46 |
</td> |
|
47 |
<td class="uk-table-shrink">ID: {{ piwik.siteId }}<br>Authentication Token: {{ piwik.authenticationToken }}</td> |
|
48 |
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.creationDate | date : "yyyy-MM-dd" }}</td> |
|
49 |
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.requestorName }}<br>{{ piwik.requestorEmail }}</td> |
|
50 |
<td class="uk-text-nowrap uk-table-shrink"> |
|
51 |
<span *ngIf="piwik.validated">YES<br>on {{ piwik.validationDate | date : "yyyy-MM-dd" }}</span> |
|
52 |
<span *ngIf="!piwik.validated">NO</span> |
|
53 |
</td> |
|
54 |
<td class="uk-text-nowrap uk-table-shrink"> |
|
55 |
<button id="{{ piwik.repositoryId }}" |
|
56 |
*ngIf="!piwik.validated" |
|
57 |
class="uk-button uk-button-primary validate" |
|
58 |
(click)="confirmApproval(piwik.repositoryId)">Validate</button> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
</tbody> |
|
62 |
</table> |
|
37 |
|
|
38 |
<div class="uk-grid"> |
|
39 |
<div class="uk-width-expand@m"> |
|
40 |
<div class="uk-grid"> |
|
41 |
<div class="uk-width-1-1@m uk-margin-medium"> |
|
42 |
<form [formGroup]="dataForm" class="uk-form-horizontal uk-grid"> |
|
43 |
|
|
44 |
<div class="uk-width-2-5@m"> |
|
45 |
<div class="uk-margin"> |
|
46 |
<label class="uk-form-label uk-text-right" for="quantity">Items per page: </label> |
|
47 |
<div class="uk-form-controls"> |
|
48 |
<select class="uk-select" id="quantity" (change)="handleChangeAndResetPage()" formControlName="quantity"> |
|
49 |
<option value="10">10</option> |
|
50 |
<option value="25" selected>25</option> |
|
51 |
<option value="50">50</option> |
|
52 |
<option value="100">100</option> |
|
53 |
</select> |
|
54 |
</div> |
|
55 |
</div> |
|
56 |
</div> |
|
57 |
|
|
58 |
<div class="uk-width-expand@m "> |
|
59 |
|
|
60 |
<div class="uk-float-right"> |
|
61 |
<label class="uk-form-label uk-text-right" for="orderBy">Order by: </label> |
|
62 |
<div class="uk-form-controls"> |
|
63 |
<select class="uk-select" id="orderBy" (change)="handleChangeAndResetPage()" formControlName="order"> |
|
64 |
<option value="DSC">Descending</option> |
|
65 |
<option value="ASC" selected>Ascending</option> |
|
66 |
</select> |
|
67 |
</div> |
|
68 |
</div> |
|
69 |
|
|
70 |
<div class="uk-float-right"> |
|
71 |
<label class="uk-form-label uk-text-right" for="sortBy">Sort by: </label> |
|
72 |
<div class="uk-form-controls"> |
|
73 |
<select class="uk-select" id="sortBy" (change)="handleChangeAndResetPage()" formControlName="orderField"> |
|
74 |
<option value="CREATION_DATE" >Date</option> |
|
75 |
<option value="REPOSITORY_NAME" selected>Name</option> |
|
76 |
</select> |
|
77 |
</div> |
|
78 |
</div> |
|
79 |
|
|
80 |
</div> |
|
81 |
|
|
82 |
</form> |
|
83 |
</div> |
|
84 |
|
|
85 |
<div class="uk-width-1-1@m"> |
|
86 |
|
|
87 |
<div *ngIf="loadingMessage" class="loading-big"> |
|
88 |
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;"> |
|
89 |
{{ loadingMessage }} |
|
90 |
</div> |
|
91 |
<div class="whiteFilm"></div> |
|
92 |
</div> |
|
93 |
|
|
94 |
<!-- TABLE --> |
|
95 |
<div *ngIf="piwiks && piwiks.results.length>0"> |
|
96 |
<table class="uk-table uk-table-striped uk-table-middle" style="font-size: 12px;"> |
|
97 |
<thead> |
|
98 |
<tr> |
|
99 |
<th class="uk-text-nowrap">Repository</th> |
|
100 |
<th class="uk-text-nowrap">Piwik site</th> |
|
101 |
<th class="uk-text-nowrap">Requested on</th> |
|
102 |
<th class="uk-text-nowrap">Requestor</th> |
|
103 |
<th class="uk-text-nowrap">Validated</th> |
|
104 |
<th class="uk-text-nowrap">Actions</th> |
|
105 |
</tr> |
|
106 |
</thead> |
|
107 |
<tbody> |
|
108 |
<tr class="el-item" *ngFor="let piwik of piwiks.results"> |
|
109 |
<td class="uk-table-shrink uk-text-truncate" style="min-width: 400px;"> |
|
110 |
{{ piwik.repositoryName }}<br>(ID: {{ piwik.repositoryId }}) |
|
111 |
</td> |
|
112 |
<td class="uk-table-shrink">ID: {{ piwik.siteId }}<br>Authentication Token: {{ piwik.authenticationToken }}</td> |
|
113 |
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.creationDate | date : "yyyy-MM-dd" }}</td> |
|
114 |
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.requestorName }}<br>{{ piwik.requestorEmail }}</td> |
|
115 |
<td class="uk-text-nowrap uk-table-shrink"> |
|
116 |
<span *ngIf="piwik.validated">YES<br>on {{ piwik.validationDate | date : "yyyy-MM-dd" }}</span> |
|
117 |
<span *ngIf="!piwik.validated">NO</span> |
|
118 |
</td> |
|
119 |
<td class="uk-text-nowrap uk-table-shrink"> |
|
120 |
<button id="{{ piwik.repositoryId }}" |
|
121 |
*ngIf="!piwik.validated" |
|
122 |
class="uk-button uk-button-primary validate" |
|
123 |
(click)="confirmApproval(piwik.repositoryId)">Validate</button> |
|
124 |
</td> |
|
125 |
</tr> |
|
126 |
</tbody> |
|
127 |
</table> |
|
128 |
</div> |
|
129 |
|
|
130 |
<ul class="uk-pagination uk-flex-center" uk-margin> |
|
131 |
<li><a (click)="previousPage()"><span uk-pagination-previous></span></a></li> |
|
132 |
<!-- <li class="uk-active"><span>{{+dataForm.get('page').value + 1}}</span></li>--> |
|
133 |
<li [ngClass]="{'uk-active': (this.dataForm.get('page').value == page) }" *ngFor="let page of pages"> |
|
134 |
<a (click)="selectPage(page)">{{page+1}}</a> </li> |
|
135 |
<li><a (click)="nextPage()"><span uk-pagination-next></span></a></li> |
|
136 |
</ul> |
|
137 |
|
|
138 |
</div> |
|
139 |
|
|
140 |
</div> |
|
141 |
</div> |
|
63 | 142 |
</div> |
64 | 143 |
|
65 | 144 |
</div> |
Also available in: Unified diff
merged metrics branch to trunk. svn merge -r56687:HEAD https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/uoa-repository-dashboard-gui/branches/metrics