1 |
54479
|
myrto.kouk
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
2 |
|
|
<div class="uk-width-1-1@m uk-first-column">
|
3 |
|
|
|
4 |
|
|
<h1 class="uk-h2">Metrics Admin</h1>
|
5 |
|
|
|
6 |
|
|
<!-- TOP HELP CONTENT -->
|
7 |
|
|
<help-content #topHelperContent [position]="'top'"
|
8 |
|
|
[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
9 |
|
|
</help-content>
|
10 |
|
|
|
11 |
|
|
<div class="uk-container uk-container-large uk-margin-medium-top uk-margin-medium-bottom">
|
12 |
|
|
<div class="uk-grid">
|
13 |
|
|
|
14 |
|
|
<!-- LEFT HELP CONTENT -->
|
15 |
|
|
<aside-help-content #leftHelperContent [position]="'left'"
|
16 |
|
|
[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
17 |
|
|
</aside-help-content>
|
18 |
|
|
|
19 |
|
|
<!-- MIDDLE -->
|
20 |
|
|
<div class="uk-width-expand@m">
|
21 |
|
|
|
22 |
|
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
|
23 |
54747
|
myrto.kouk
|
<div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
|
24 |
56889
|
antonis.le
|
|
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>
|
35 |
54479
|
myrto.kouk
|
</div>
|
36 |
|
|
</div>
|
37 |
56889
|
antonis.le
|
|
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>
|
142 |
54479
|
myrto.kouk
|
</div>
|
143 |
|
|
|
144 |
|
|
</div>
|
145 |
|
|
|
146 |
|
|
<!-- RIGHT HELP CONTENT -->
|
147 |
|
|
<aside-help-content #rightHelperContent [position]="'right'"
|
148 |
|
|
[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
149 |
|
|
</aside-help-content>
|
150 |
|
|
|
151 |
|
|
</div>
|
152 |
|
|
</div>
|
153 |
|
|
|
154 |
|
|
|
155 |
|
|
<!-- BOTTOM HELP CONTENT -->
|
156 |
|
|
<help-content #bottomHelperContent [position]="'bottom'"
|
157 |
|
|
[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
158 |
|
|
</help-content>
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
</div>
|
162 |
|
|
</div>
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
<confirmation-dialog #confirmApprovalModal [title]="modalTitle" [isModalShown]="isModalShown"
|
166 |
|
|
[confirmActionButton]="modalButton" (emitObject)="confirmedApproval($event)">
|
167 |
|
|
Are you sure you want to validate the selected piwik site(s)?
|
168 |
|
|
</confirmation-dialog>
|