1
|
<p class="muted"><b>ID: </b>{{orgId}}</p>
|
2
|
|
3
|
<div class="row">
|
4
|
<div class="col-xl-8 col-lg-10">
|
5
|
<div class="card">
|
6
|
<div class="card-header">
|
7
|
<ul class="nav nav-tabs card-header-tabs">
|
8
|
<li class="nav-item">
|
9
|
<a href="#!/metadata/{{orgId}}" class="nav-link">Metadata</a>
|
10
|
</li>
|
11
|
<li class="nav-item">
|
12
|
<a href="javascript:void(0)" class="nav-link active" href="#">Relations</a>
|
13
|
</li>
|
14
|
<li class="nav-item">
|
15
|
<a href="#!/similarities/{{orgId}}" class="nav-link" href="#">Similarities</a>
|
16
|
</li>
|
17
|
</ul>
|
18
|
</div>
|
19
|
|
20
|
<div class="card-body text-muted" ng-if="rels.length == 0">
|
21
|
No relations
|
22
|
</div>
|
23
|
|
24
|
<table class="table table-sm mt-2" ng-if="rels.length > 0">
|
25
|
<thead>
|
26
|
<tr>
|
27
|
<th class="pl-3" style="border-top: none;">Related organization</th>
|
28
|
<th style="border-top: none;">Type</th>
|
29
|
<th style="border-top: none;"></th>
|
30
|
</tr>
|
31
|
</thead>
|
32
|
<tbody>
|
33
|
<tr ng-repeat="r in rels">
|
34
|
<td class="pl-3"><a href="#!/metadata/{{r.relatedOrgId}}" title="{{r.relatedOrgId}}">{{r.relatedOrgName}}</a></td>
|
35
|
<td>{{r.type}}</td>
|
36
|
<td class="text-right">
|
37
|
<button type="button" class="btn btn-sm btn-outline-danger" ng-click="deleteRelation(r.relatedOrgId, r.type)">delete</button>
|
38
|
</td>
|
39
|
</tr>
|
40
|
</tbody>
|
41
|
</table>
|
42
|
|
43
|
|
44
|
<div class="card-footer">
|
45
|
<div class="input-group input-group-sm" ng-init="newRelId=newRelType=''">
|
46
|
<input type="text" class="form-control" placeholder="new relation (organization id)..." ng-model="newRelId" />
|
47
|
<select class="custom-select" ng-model="newRelType">
|
48
|
<option disabled="disabled" value=''>relation type...</option>
|
49
|
<option ng-repeat="t in vocabularies.relTypes">{{t}}</option>
|
50
|
</select>
|
51
|
<div class="input-group-append">
|
52
|
<button type="button" class="btn btn-outline-success" ng-click="addRelation(newRelId, newRelType)" ng-disabled="!newRelId || !newRelType">add</button>
|
53
|
</div>
|
54
|
</div>
|
55
|
</div>
|
56
|
|
57
|
</div>
|
58
|
</div>
|
59
|
</div>
|