1
|
<div class="row">
|
2
|
<div class="col-xs-3">
|
3
|
<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#addToBlacklistModal">Add blacklist entry</button>
|
4
|
</div>
|
5
|
<div class="col-xs-9">
|
6
|
<form role="form" class="form-inline pull-right">
|
7
|
<input type="text" placeholder="Filter..." ng-model="blacklistFilter" class="form-control input-sm">
|
8
|
<button type="button" class="btn btn-default btn btn-sm" ng-click="refresh()"><span class="glyphicon glyphicon-refresh"></span></button>
|
9
|
</form>
|
10
|
</div>
|
11
|
</div>
|
12
|
|
13
|
<!-- Button trigger modal -->
|
14
|
|
15
|
<br /><br />
|
16
|
|
17
|
<!-- Modal -->
|
18
|
<!-- New BL entry -->
|
19
|
|
20
|
<div class="modal fade" id="addToBlacklistModal">
|
21
|
<div class="modal-dialog modal-lg">
|
22
|
<div class="modal-content">
|
23
|
<div class="modal-header">
|
24
|
<button type="button" class="close" data-dismiss="modal">
|
25
|
<span aria-hidden="true">×</span>
|
26
|
</button>
|
27
|
<h4 class="modal-title" id="addToBlacklistModalLabel">Add new blacklist entry</h4>
|
28
|
</div>
|
29
|
<div class="modal-body">
|
30
|
<ng-blacklist-form entry="newEntry"></ng-blacklist-form>
|
31
|
</div>
|
32
|
<div class="modal-footer">
|
33
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
34
|
<button type="button" class="btn btn-primary" ng-click="addToBlacklist(newEntry)">Save changes</button>
|
35
|
</div>
|
36
|
</div>
|
37
|
</div>
|
38
|
</div>
|
39
|
|
40
|
<!-- Edit BL entry -->
|
41
|
<div class="modal fade" id="editBlacklistEntryModal">
|
42
|
<div class="modal-dialog modal-lg">
|
43
|
<div class="modal-content">
|
44
|
<div class="modal-header">
|
45
|
<button type="button" class="close" data-dismiss="modal">
|
46
|
<span aria-hidden="true">×</span>
|
47
|
</button>
|
48
|
<h4 class="modal-title" id="editBlacklistEntryModalLabel">Edit blacklist entry {{entryToEdit.id}}</h4>
|
49
|
</div>
|
50
|
<div class="modal-body">
|
51
|
<ng-blacklist-form entry="entryToEdit"></ng-blacklist-form>
|
52
|
</div>
|
53
|
<div class="modal-footer">
|
54
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
55
|
<button type="button" class="btn btn-primary" ng-click="editBlacklistEntry(entryToEdit)">Save changes</button>
|
56
|
</div>
|
57
|
</div>
|
58
|
</div>
|
59
|
</div>
|
60
|
|
61
|
<table class="table table-hover" style="font-size: 12px">
|
62
|
<thead>
|
63
|
<tr>
|
64
|
<!--<th>ID</th>-->
|
65
|
<th class="text-right">Ticket ID</th>
|
66
|
<!--<th>User</th>-->
|
67
|
<th class="text-center">Status</th>
|
68
|
<th class="text-center">IIS Status</th>
|
69
|
<th class="text-center">Source Object</th>
|
70
|
<th class="text-center">Relationship</th>
|
71
|
<th class="text-center">Target Object</th>
|
72
|
<th class="text-center">Provenance / IIS Module</th>
|
73
|
<!--<th>IIS module</th>-->
|
74
|
<th>Note</th>
|
75
|
<th class="text-center">Last Update Date</th>
|
76
|
<th></th>
|
77
|
</tr>
|
78
|
</thead>
|
79
|
<tbody>
|
80
|
<tr ng-repeat="entry in blacklist | filter:blacklistFilter">
|
81
|
<!--<td>{{entry.id}}</td>-->
|
82
|
<td class="text-right">
|
83
|
<a ng-show="entry.ticketId && entry.ticketId > 0" target="_blank" href="https://issue.openaire.research-infrastructures.eu/issues/{{entry.ticketId}}">{{entry.ticketId}}</a>
|
84
|
<span ng-hide="entry.ticketId && entry.ticketId > 0">-</span>
|
85
|
</td>
|
86
|
<!--<td>{{entry.user}}</td>-->
|
87
|
<td class="text-center">{{entry.status}}</td>
|
88
|
<td class="text-center">{{entry.iisStatus}}</td>
|
89
|
<td class="text-center" style="font-family: monospace">
|
90
|
<b class="text-info">{{entry.sourceObject}}</b>
|
91
|
<span ng-repeat="origId in entry.originalSourceObjects" class="text-muted" ng-show="origId != entry.sourceObject"><br />{{origId}}</span>
|
92
|
</td>
|
93
|
<td class="text-center">{{entry.relationship}}</td>
|
94
|
<td class="text-center" style="font-family: monospace">
|
95
|
<b class="text-info">{{entry.targetObject}}</b>
|
96
|
<span ng-repeat="origId in entry.originalTargetObjects" class="text-muted" ng-show="origId != entry.targetObject"><br />{{origId}}</span>
|
97
|
</td>
|
98
|
<td class="text-center">{{entry.provenance}} / {{entry.iisModule}}</td>
|
99
|
<!--<td>{{entry.iisModule}}</td>-->
|
100
|
<td>{{entry.note}}</td>
|
101
|
<td class="text-center">{{entry.lastUpdateDate}}</td>
|
102
|
<td class="text-right" style="white-space: nowrap;">
|
103
|
<button type="button" class="btn btn-warning btn-xs" data-toggle="modal" ng-click="prepareForEdit(entry)">Edit</button>
|
104
|
<button type="button" class="btn btn-danger btn-xs" ng-click="deleteFromBlacklist(entry.id)">Delete</button>
|
105
|
</td>
|
106
|
</tr>
|
107
|
</tbody>
|
108
|
</table>
|
109
|
|