1
|
$common/master(
|
2
|
|
3
|
header={
|
4
|
$ui/repos/header()$
|
5
|
<script type="text/javascript" src="../resources/js/repoEnabler.js"></script>
|
6
|
<script type="text/javascript">
|
7
|
function getTypologies() { return $types$ }
|
8
|
</script>
|
9
|
|
10
|
<style>
|
11
|
.popover { max-width: 450px; width: auto; }
|
12
|
</style>
|
13
|
},
|
14
|
onLoad={},
|
15
|
body={
|
16
|
<div id="main" ng-app="repoEnablerUI" ng-controller="repoEnablerCtrl">
|
17
|
$ui/repos/repoDetails()$
|
18
|
|
19
|
<div class="row">
|
20
|
<div class="col-sm-4 col-lg-3">
|
21
|
<ul class="nav nav-pills nav-stacked">
|
22
|
<li ng-class="{active : t.id == currType}"
|
23
|
ng-repeat="t in types">
|
24
|
<a href="javascript:void(0)" ng-click="selectType(t.name)">{{t.desc}}</a>
|
25
|
</li>
|
26
|
</ul>
|
27
|
</div>
|
28
|
<div class="col-sm-8 col-lg-9">
|
29
|
<div class="well" ng-hide="repos.length > 0">
|
30
|
<h5><i>No datasource</i></h5>
|
31
|
</div>
|
32
|
|
33
|
<div class="panel panel-default" ng-show="repos.length > 0">
|
34
|
<div class="panel-heading">
|
35
|
<form class="form-inline text-right" role="form">
|
36
|
<div class="form-group">
|
37
|
<label class="sr-only" for="repoFilter">Filter...</label>
|
38
|
<input type="text" class="form-control input-sm" id="repoFilter" ng-model="repoFilter.name" placeholder="Filter..." />
|
39
|
</div>
|
40
|
<button ng-click="selectType(currType)" class="btn btn-sm btn-default" type="button"><span class="glyphicon glyphicon-refresh"></span></button>
|
41
|
</form>
|
42
|
</div>
|
43
|
<table class="table table-bordered table-striped">
|
44
|
<tr ng-repeat="r in repos | filter: repoFilter">
|
45
|
<td>
|
46
|
<a href="isManager.do#/profile/{{r.id}}" class="btn btn-xs btn-primary" title="xml profile"><span class="glyphicon glyphicon-link"></span></a>
|
47
|
<a href="javascript:void(0)" ng-click="showDetails(r.id, r.name)">
|
48
|
{{r.name}}
|
49
|
</a>
|
50
|
<div ng-show="r.valid" class="pull-right">
|
51
|
<a href="javascript:void(0)" ng-click="setValidation(r.id, false)">force invalidate</a>
|
52
|
/
|
53
|
<span class="label label-success">valid</span>
|
54
|
</div>
|
55
|
<div ng-show="!r.valid" class="pull-right">
|
56
|
<span class="label label-danger">pending</span>
|
57
|
/
|
58
|
<a href="javascript:void(0)" ng-click="setValidation(r.id, true)">force validate</a>
|
59
|
</div>
|
60
|
</td>
|
61
|
</tr>
|
62
|
</table>
|
63
|
<div class="panel-footer"></div>
|
64
|
</div>
|
65
|
</div>
|
66
|
</div>
|
67
|
</div>
|
68
|
})$
|