Project

General

Profile

1
<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
          <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 }}
27
            </div>
28
            <div class="whiteFilm"></div>
29
          </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>
63
          </div>
64

    
65
        </div>
66

    
67
        <!-- RIGHT HELP CONTENT -->
68
        <aside-help-content #rightHelperContent [position]="'right'"
69
                            [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
70
        </aside-help-content>
71

    
72
      </div>
73
    </div>
74

    
75

    
76
    <!-- BOTTOM HELP CONTENT -->
77
    <help-content #bottomHelperContent [position]="'bottom'"
78
                  [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
79
    </help-content>
80

    
81

    
82
  </div>
83
</div>
84

    
85

    
86
<confirmation-dialog #confirmApprovalModal [title]="modalTitle" [isModalShown]="isModalShown"
87
                     [confirmActionButton]="modalButton" (emitObject)="confirmedApproval($event)">
88
  Are you sure you want to validate the selected piwik site(s)?
89
</confirmation-dialog>
(1-1/8)