Project

General

Profile

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
					<div class="btn-group">
22
						<button type="button" class="btn btn-default" ng-click="showInfoModal()">
23
							Edit info <span class="glyphicon glyphicon-book"></span>
24
						</button>
25
						<button type="button" class="btn btn-default" ng-click="showTermModal(null)">
26
							New Term <span class="glyphicon glyphicon-pencil"></span>
27
						</button>
28
						<button type="button" class="btn btn-default" ng-click="commit()" ng-show="!autocommit">
29
							Commit <span class="glyphicon glyphicon-floppy-saved"></span>
30
						</button>
31
						<button type="button" class="btn btn-default" ng-click="reloadTerms()" ng-show="!autocommit">
32
							Discard all <span class="glyphicon glyphicon-repeat"></span>
33
						</button>
34
						<button type="button" class="btn btn-default" ng-click="reloadTerms()" ng-show="autocommit">
35
                            Refresh from IS <span class="glyphicon glyphicon-refresh"></span>
36
                        </button>
37
						<button type="button" class="btn btn-default" ng-click="dropVocabulary()">
38
							Drop vocabulary <span class="glyphicon glyphicon-trash"></span>
39
						</button>
40
					</div>
41
					<div class="checkbox">
42
                        <label><input type="checkbox" ng-model="autocommit"> Auto-commit</label>
43
                    </div>
44
					<div class="form-group pull-right">
45
						<input type="text" class="form-control" ng-model="termFilter" placeholder="Filter by...">
46
					</div>
47
				</form>
48
				<br><br>
49
				
50
				<term-list></term-list>
51
			</div>
52
		</div>
53
			
54
		<!-- infoModal -->
55
		<modal-info></modal-info>
56
		
57
		<!-- term Modal -->
58
		<modal-term></modal-term>
59
		
60
		<!-- synonymModal -->
61
		<modal-synonym></modal-synonym>
62

    
63
		<!-- relModal -->
64
		<modal-relation></modal-relation>
65
		
66
	</div>
67
} )$
(12-12/14)