1
|
<div class="card mb-3">
|
2
|
<div class="card-header bg-primary text-white py-1">Conflicts</div>
|
3
|
|
4
|
<div class="card-body text-muted" ng-if="conflicts.length == 0">No conflicts</div>
|
5
|
|
6
|
<table class="table table-sm mt-2" ng-if="conflicts.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;">Type</th>
|
11
|
<th class="col-2 text-center" style="border-top: none;">Place</th>
|
12
|
<th class="col-3" style="border-top: none;">Original ID</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 conflicts">
|
18
|
<td class="col-4 pl-3">{{sr.name}}</td>
|
19
|
<td class="col-1 text-center small">{{sr.type}}</td>
|
20
|
<td class="col-2 text-center small"><img ng-src="resources/images/flags/{{sr.country}}.gif" /> {{sr.city}}, {{sr.country}}</td>
|
21
|
<td class="col-3 small"><a href="#!/edit/0/{{sr.id}}"><span class="text-monospace">{{sr.id}}</span></a></td>
|
22
|
<td class="col-2 text-right">
|
23
|
<div class="btn-group btn-group-toggle btn-group-sm" data-toggle="buttons">
|
24
|
<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"
|
25
|
value="is_different" ng-class="{'active' : sr.relType == 'is_different'}"><i class="fas fa-times fa-fw"></i>
|
26
|
</label>
|
27
|
<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"
|
28
|
value="suggested" ng-class="{'active' : sr.relType == 'suggested'}"><i class="fas fa-question fa-fw"></i>
|
29
|
</label>
|
30
|
<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"
|
31
|
value="is_similar" ng-class="{'active' : sr.relType == 'is_similar'}" /><i class="fas fa-check fa-fw"></i>
|
32
|
</label>
|
33
|
</div>
|
34
|
</td>
|
35
|
</tr>
|
36
|
</tbody>
|
37
|
</table>
|
38
|
|
39
|
<div class="card-footer text-right" ng-if="showSaveButton && conflicts.length > 0">
|
40
|
<button class="btn btn-sm btn-primary" ng-click="saveFunction()">todo</button>
|
41
|
</div>
|
42
|
</div>
|