Revision 58214
Added by Michele Artini about 4 years ago
org_duplicates.html | ||
---|---|---|
1 |
<table class="table table-sm mt-2" ng-if="duplicates.length > 0"> |
|
2 |
<thead> |
|
3 |
<tr class="d-flex"> |
|
4 |
<th class="col-4 pl-3" style="border-top: none;">Related organization</th> |
|
5 |
<th class="col-1 text-center" style="border-top: none;">Acronym</th> |
|
6 |
<th class="col-2 text-center" style="border-top: none;">Country</th> |
|
7 |
<th class="col-3" style="border-top: none;">Source</th> |
|
8 |
<th class="col-2" style="border-top: none;"></th> |
|
9 |
</tr> |
|
10 |
</thead> |
|
11 |
<tbody> |
|
12 |
<tr class="d-flex" ng-repeat="sr in duplicates"> |
|
13 |
<td class="col-4 pl-3">{{sr.oaName}} <span class="small" ng-if="sr.oaUrl"><br /> |
|
14 |
<b>URL: </b><a href="{{sr.oaUrl}}" target="_blank">{{sr.oaUrl}}</a></span> |
|
15 |
</td> |
|
16 |
<td class="col-1 text-center small">{{sr.oaAcronym}}</td> |
|
17 |
<td class="col-2 text-center small"><img ng-src="resources/images/flags/{{sr.oaCountry}}.gif" /> {{sr.oaCountry}}</td> |
|
18 |
<td class="col-3 small"><b>Collected from:</b> {{sr.oaCollectedFrom}}<br /> <b>Original Id:</b> <span class="text-monospace">{{sr.oaOriginalId}}</span></td> |
|
19 |
<td class="col-2 text-right"> |
|
20 |
<div class="btn-group btn-group-toggle btn-group-sm" data-toggle="buttons"> |
|
21 |
<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" |
|
22 |
value="is_different" ng-class="{'active' : sr.relType == 'is_different'}"><i class="fas fa-times fa-fw"></i> |
|
23 |
</label> |
|
24 |
<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" |
|
25 |
value="suggested" ng-class="{'active' : sr.relType == 'suggested'}"><i class="fas fa-question fa-fw"></i> |
|
26 |
</label> |
|
27 |
<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" |
|
28 |
value="is_similar" ng-class="{'active' : sr.relType == 'is_similar'}" /><i class="fas fa-check fa-fw"></i> |
|
29 |
</label> |
|
30 |
</div> |
|
31 |
</td> |
|
32 |
</tr> |
|
33 |
</tbody> |
|
34 |
</table> |
|
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="saveFunction && duplicates.length > 0"> |
|
42 |
<button class="btn btn-sm btn-primary" ng-click="saveFunction()">save</button> |
|
43 |
</div> |
|
44 |
|
|
45 |
</div> |
Also available in: Unified diff
some directives