Revision 58323
Added by Michele Artini about 4 years ago
org_conflicts.html | ||
---|---|---|
6 | 6 |
<table class="table table-sm mt-2" ng-if="conflicts.length > 0"> |
7 | 7 |
<thead> |
8 | 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> |
|
9 |
<th class="col-6 pl-3" style="border-top: none;">Related organization</th> |
|
10 |
<th class="col-2 text-center" style="border-top: none;">Type</th> |
|
11 |
<th class="col-4 text-right" style="border-top: none;">Place</th> |
|
14 | 12 |
</tr> |
15 | 13 |
</thead> |
16 | 14 |
<tbody> |
17 | 15 |
<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> |
|
16 |
<td class="col-6 pl-3">{{sr.name}}<br /><a href="#!/edit/0/{{sr.id}}" class="small text-monospace">{{sr.id}}</a></td> |
|
17 |
<td class="col-2 text-center small">{{sr.type}}</td> |
|
18 |
<td class="col-4 text-right small"><img ng-src="resources/images/flags/{{sr.country}}.gif" /> {{sr.city}}, {{sr.country}}</td> |
|
35 | 19 |
</tr> |
36 | 20 |
</tbody> |
37 | 21 |
</table> |
38 | 22 |
|
39 | 23 |
<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>
|
|
24 |
<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#resolveConflictsModal" ng-click="prepareConflictsModal()">resolve conflicts</button>
|
|
41 | 25 |
</div> |
42 |
</div> |
|
26 |
</div> |
|
27 |
|
|
28 |
<resolve-conflicts-modal modal-id="resolveConflictsModal" orgs="candidateConflicts" selected-orgs="selectedConflicts"></resolve-conflicts-modal> |
Also available in: Unified diff