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">Registrations Admin Page</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-expand  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"
26
                 style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
27
              {{ loadingMessage }}
28
            </div>
29
            <div class="whiteFilm"></div>
30
          </div>
31

    
32

    
33

    
34

    
35
          <div class="uk-grid">
36
            <div class="uk-width-1-1@m uk-padding" style="background-color: #fff; text-align: center">
37
              <form [formGroup]="dataForm" class="uk-search uk-search-default uk-width-1-1@m">
38
                <input class="uk-width-1-2 uk-search-input" type="search" formControlName="officialname" placeholder="Search (official name) ..." style="background-color: #fff">
39
                <button class="uk-button" (click)="handleChange()">Search</button>
40
              </form>
41
            </div>
42
          </div>
43

    
44
          <div class="uk-grid">
45
            <div class="uk-width-1-4@m">
46
              <form [formGroup]="dataForm" class="uk-form-stacked">
47

    
48
                <div class="uk-form-label uk-text-large">Filtered By</div>
49

    
50
                <div class="uk-margin">
51
                  <div class="uk-form-label uk-text-large">Datasource Type</div>
52
                  <div class="uk-form-controls">
53
                    <label><input class="uk-radio" type="radio" value="" (change)="handleChange()" formControlName="typology"> Any</label><br>
54
<!--                                        <label><input class="uk-radio" type="radio" value="Literature" (change)="handleChange()" formControlName="typology"> Literature</label><br>-->
55
                    <label><input class="uk-radio" type="radio" value="Aggregator" (change)="handleChange()" formControlName="typology"> Aggregator</label><br>
56
                    <label><input class="uk-radio" type="radio" value="Journal" (change)="handleChange()" formControlName="typology"> Journal</label><br>
57
                    <label><input class="uk-radio" type="radio" value="datarepository" (change)="handleChange()" formControlName="typology"> Data Repository</label><br>
58
                    <label><input class="uk-radio" type="radio" value="pubsrepository" (change)="handleChange()" formControlName="typology"> Public Repository</label><br>
59
                    <label><input class="uk-radio" type="radio" value="entityregistry" (change)="handleChange()" formControlName="typology"> Entity Registry</label><br>
60
                    <label><input class="uk-radio" type="radio" value="Institutional" (change)="handleChange()" formControlName="typology"> Institutional</label><br>
61
                    <label><input class="uk-radio" type="radio" value="Thematic" (change)="handleChange()" formControlName="typology"> Thematic</label><br>
62
                    <label><input class="uk-radio" type="radio" value="Products" (change)="handleChange()" formControlName="typology"> Products</label><br>
63
                    <label><input class="uk-radio" type="radio" value="Unknown" (change)="handleChange()" formControlName="typology"> Unknown</label>
64
                  </div>
65
                </div>
66

    
67
                <div class="uk-margin">
68
                  <div class="uk-form-label uk-text-large">Countries</div>
69
                  <div class="uk-form-controls">
70
                    <ng-container *ngIf="countries && countries.length>0">
71
                      <read-more [maxHeight]="238">
72
                        <div><input class="uk-radio" type="radio" value="" (change)="handleChange()" formControlName="country"> Any</div>
73
                        <ng-container *ngFor="let country of countries">
74
                          <div class="">
75
                            <input class="uk-radio" type="radio" value="{{country.code}}"
76
                                   (change)="handleChange()" formControlName="country"> {{country.name}}
77
                          </div>
78
                        </ng-container>
79
                      </read-more>
80
                    </ng-container>
81
                  </div>
82
                </div>
83

    
84
              </form>
85
            </div>
86
            <div class="uk-width-expand@m">
87
              <div class="uk-grid">
88
                <div class="uk-width-1-1@m uk-margin-medium">
89
                  <form [formGroup]="dataForm" class="uk-form-horizontal uk-grid">
90

    
91
                    <div class="uk-width-2-5@m">
92
                      <div class="uk-margin">
93
                        <label class="uk-form-label uk-text-right" for="pageSize">Items per page: </label>
94
                        <div class="uk-form-controls">
95
                          <select class="uk-select" id="pageSize" (change)="handleChangeAndResetPage()" formControlName="pageSize">
96
                            <option value="10">10</option>
97
                            <option value="25" selected>25</option>
98
                            <option value="50">50</option>
99
                            <option value="100">100</option>
100
                          </select>
101
                        </div>
102
                      </div>
103
                    </div>
104

    
105
                    <div class="uk-width-expand@m ">
106

    
107
                      <div class="uk-float-right">
108
                        <label class="uk-form-label uk-text-right" for="orderBy">Order by: </label>
109
                        <div class="uk-form-controls">
110
                          <select class="uk-select" id="orderBy" (change)="handleChangeAndResetPage()" formControlName="order">
111
                            <option value="DESCENDING" selected>Descending</option>
112
                            <option value="ASCENDING">Ascending</option>
113
                          </select>
114
                        </div>
115
                      </div>
116

    
117
                      <div class="uk-float-right">
118
                        <label class="uk-form-label uk-text-right" for="sortBy">Sort by: </label>
119
                        <div class="uk-form-controls">
120
                          <select class="uk-select" id="sortBy" (change)="handleChangeAndResetPage()" formControlName="requestSortBy">
121
                            <option value="registrationdate" selected>Date</option>
122
                            <option value="officialname">Name</option>
123
                          </select>
124
                        </div>
125
                      </div>
126

    
127
                    </div>
128

    
129

    
130
                  </form>
131
                </div>
132

    
133
                <div class="uk-width-1-1@m">
134

    
135
                  <table class="uk-table uk-table-striped">
136
                    <thead>
137
                    <tr>
138
                      <th>Repository</th>
139
                      <th>Date</th>
140
                      <th>Organization</th>
141
                      <th>Type</th>
142
                    </tr>
143
                    </thead>
144
                    <tbody>
145
                    <tr *ngFor="let res of repositorySnippet">
146
                      <td class="uk-width-1-6@m">{{res.officialname}} <br> ({{res.id}}) <br> {{res.registeredby}}</td>
147
                      <td >{{res.registrationdate}}</td>
148
                      <td> <div *ngFor="let organization of res.organizations">{{organization.legalname + ' (' + getCountryName(organization.country)}})<br></div></td>
149
                      <td>{{res.typology.split('::')[0]}}<br>{{res.typology.split('::')[1]}}<br>{{res.typology.split('::')[2]}}</td>
150
                    </tr>
151
                    </tbody>
152
                  </table>
153

    
154
                  <ul class="uk-pagination uk-flex-center" uk-margin>
155
                    <li><a (click)="previousPage()"><span uk-pagination-previous></span></a></li>
156
                    <li class="uk-active"><span>{{+dataForm.get('page').value + 1}}</span></li>
157
                    <li><a (click)="nextPage()"><span uk-pagination-next></span></a></li>
158
                  </ul>
159

    
160
                </div>
161

    
162
              </div>
163
            </div>
164
          </div>
165

    
166
        </div>
167
      </div>
168
    </div>
169
  </div>
170
</div>
(7-7/8)