1
|
$common/master( header={
|
2
|
<script type="text/javascript" src="../resources/js/angular.min.js"></script>
|
3
|
<script type="text/javascript" src="../resources/js/vocabularies.js"></script>
|
4
|
<script type="text/javascript" src="../resources/js/uniqueChecker.js"></script>
|
5
|
<script type="text/javascript" src="../resources/js/modalTerm.js"></script>
|
6
|
<script type="text/javascript" src="../resources/js/modalInfo.js"></script>
|
7
|
<script type="text/javascript" src="../resources/js/modalSynonym.js"></script>
|
8
|
<script type="text/javascript" src="../resources/js/modalRelation.js"></script>
|
9
|
<script type="text/javascript">
|
10
|
function getValidRelations() {
|
11
|
return $if(validRelations)$$validRelations$$else$[]$endif$;
|
12
|
}
|
13
|
</script>
|
14
|
}, body={
|
15
|
<div ng-app="vocabulariesUI" ng-controller="vocabulariesCtrl">
|
16
|
<div class="row">
|
17
|
<vocabulary-list></vocabulary-list>
|
18
|
|
19
|
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9" ng-show="entries != null && selectedVocabularyIndex != null" >
|
20
|
<form role="form" class="form-inline">
|
21
|
<button type="button" class="btn btn-primary" ng-click="openCloseAllTerms()">
|
22
|
Open/close all terms
|
23
|
</button>
|
24
|
<div class="btn-group">
|
25
|
<button type="button" class="btn btn-default" ng-click="showInfoModal()">
|
26
|
Edit info <span class="glyphicon glyphicon-book"></span>
|
27
|
</button>
|
28
|
<button type="button" class="btn btn-default" ng-click="showTermModal(null)">
|
29
|
New Term <span class="glyphicon glyphicon-pencil"></span>
|
30
|
</button>
|
31
|
<button type="button" class="btn btn-default" ng-click="commit()" ng-show="!autocommit">
|
32
|
Commit <span class="glyphicon glyphicon-floppy-saved"></span>
|
33
|
</button>
|
34
|
<button type="button" class="btn btn-default" ng-click="reloadTerms()" ng-show="!autocommit">
|
35
|
Discard all <span class="glyphicon glyphicon-repeat"></span>
|
36
|
</button>
|
37
|
<button type="button" class="btn btn-default" ng-click="reloadTerms()" ng-show="autocommit">
|
38
|
Refresh from IS <span class="glyphicon glyphicon-refresh"></span>
|
39
|
</button>
|
40
|
<button type="button" class="btn btn-default" ng-click="dropVocabulary()">
|
41
|
Drop vocabulary <span class="glyphicon glyphicon-trash"></span>
|
42
|
</button>
|
43
|
</div>
|
44
|
<div class="checkbox">
|
45
|
<label><input type="checkbox" ng-model="autocommit"> Auto-commit</label>
|
46
|
</div>
|
47
|
<div class="form-group pull-right">
|
48
|
<input type="text" class="form-control" ng-model="termFilter" placeholder="Filter by...">
|
49
|
</div>
|
50
|
</form>
|
51
|
<br><br>
|
52
|
|
53
|
<term-list></term-list>
|
54
|
</div>
|
55
|
</div>
|
56
|
|
57
|
<!-- infoModal -->
|
58
|
<modal-info></modal-info>
|
59
|
|
60
|
<!-- term Modal -->
|
61
|
<modal-term></modal-term>
|
62
|
|
63
|
<!-- synonymModal -->
|
64
|
<modal-synonym></modal-synonym>
|
65
|
|
66
|
<!-- relModal -->
|
67
|
<modal-relation></modal-relation>
|
68
|
|
69
|
</div>
|
70
|
} )$
|