1
|
<div class="card mb-3">
|
2
|
<div class="card-header bg-primary text-white py-1">Duplicates</div>
|
3
|
|
4
|
<div class="text-muted card-body" ng-if="duplicates.length == 0">No duplicates</div>
|
5
|
|
6
|
<table class="table table-sm mt-2" ng-if="duplicates.length > 0">
|
7
|
<thead>
|
8
|
<tr class="d-flex">
|
9
|
<th class="col-4 pl-3" style="border-top: none;">Related organization</th>
|
10
|
<th class="col-1 text-center" style="border-top: none;">Acronym</th>
|
11
|
<th class="col-2 text-center" style="border-top: none;">Country</th>
|
12
|
<th class="col-3" style="border-top: none;">Source</th>
|
13
|
<th class="col-2" style="border-top: none;"></th>
|
14
|
</tr>
|
15
|
</thead>
|
16
|
<tbody>
|
17
|
<tr class="d-flex" ng-repeat="sr in duplicates">
|
18
|
<td class="col-4 pl-3">{{sr.oaName}} <span class="small" ng-if="sr.oaUrl"><br />
|
19
|
<b>URL: </b><a href="{{sr.oaUrl}}" target="_blank">{{sr.oaUrl}}</a></span>
|
20
|
</td>
|
21
|
<td class="col-1 text-center small">{{sr.oaAcronym}}</td>
|
22
|
<td class="col-2 text-center small"><img ng-src="resources/images/flags/{{sr.oaCountry}}.gif" /> {{sr.oaCountry}}</td>
|
23
|
<td class="col-3 small"><b>Collected from:</b> {{sr.oaCollectedFrom}}<br /> <b>Original Id:</b> <span class="text-monospace">{{sr.oaOriginalId}}</span></td>
|
24
|
<td class="col-2 text-right">
|
25
|
<div class="btn-group btn-group-toggle btn-group-sm" data-toggle="buttons">
|
26
|
<label class="btn" ng-class="{'btn-danger' : sr.relType == 'is_different', 'btn-outline-danger' : sr.relType != 'is_different'}"> <input type="radio" autocomplete="off" ng-model="sr.relType"
|
27
|
value="is_different" ng-class="{'active' : sr.relType == 'is_different'}"><i class="fas fa-times fa-fw"></i>
|
28
|
</label>
|
29
|
<label class="btn" ng-class="{'btn-info' : sr.relType == 'suggested', 'btn-outline-info' : sr.relType != 'suggested'}"> <input type="radio" autocomplete="off" ng-model="sr.relType"
|
30
|
value="suggested" ng-class="{'active' : sr.relType == 'suggested'}"><i class="fas fa-question fa-fw"></i>
|
31
|
</label>
|
32
|
<label class="btn" ng-class="{'btn-success' : sr.relType == 'is_similar', 'btn-outline-success' : sr.relType != 'is_similar'}"> <input type="radio" autocomplete="off" ng-model="sr.relType"
|
33
|
value="is_similar" ng-class="{'active' : sr.relType == 'is_similar'}" /><i class="fas fa-check fa-fw"></i>
|
34
|
</label>
|
35
|
</div>
|
36
|
</td>
|
37
|
</tr>
|
38
|
</tbody>
|
39
|
</table>
|
40
|
|
41
|
<div class="card-footer text-right" ng-if="showSaveButton && duplicates.length > 0">
|
42
|
<button class="btn btn-sm btn-primary" ng-click="saveFunction()">save</button>
|
43
|
</div>
|
44
|
|
45
|
</div>
|