blob: ebe307c3bad0394570d8cd463c1bc2f7b6a0b05b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
<div>
<div><h4 data-translate="moon.model.metarules.title">List of Meta Rules</h4></div>
<div class="table-responsive" data-role="table">
<table class="table table-striped table-hover" ng-table="list.table">
<colgroup>
<col class="col-md-2" />
<col class="col-md-2" />
<col class="col-md-1" />
<col class="col-md-1" />
<col class="col-md-1" />
<col class="col-md-2" />
</colgroup>
<thead>
<tr>
<th class="customTables sortable"
ng-class="{ 'sort-asc': list.table.isSortBy('name', 'asc'), 'sort-desc': list.table.isSortBy('name', 'desc') }"
ng-click="list.table.sorting('name', list.table.isSortBy('name', 'asc') ? 'desc' : 'asc')">
<div data-translate="moon.model.metarules.table.name">Name</div>
</th>
<th class="customTables sortable"
ng-class="{ 'sort-asc': list.table.isSortBy('description', 'asc'), 'sort-desc': list.table.isSortBy('description', 'desc') }"
ng-click="list.table.sorting('description', list.table.isSortBy('description', 'asc') ? 'desc' : 'asc')">
<div data-translate="moon.model.metarules.table.description">Description</div>
</th>
<th class="customTables sortable">
<div data-translate="moon.model.metarules.table.metadata.subject.number">Number of Subjects</div>
</th>
<th class="customTables sortable">
<div data-translate="moon.model.metarules.table.metadata.object.number">Number of Subjects</div>
</th>
<th class="customTables sortable">
<div data-translate="moon.model.metarules.table.metadata.action.number">Number of Actions</div>
</th>
<th class="customTables">
<div data-translate="moon.model.metarules.action.title">Actions</div>
</th>
</tr>
</thead>
<tbody ng-if="!list.hasMetaRules()">
<tr>
<td colspan="2"><span data-translate="moon.model.metarules.table.notFound">There is no Meta Rules</span></td>
</tr>
</tbody>
<tbody ng-if="list.hasMetaRules()">
<tr ng-repeat="aMetaRules in $data | filter:list.search.find | orderBy:sort:reverse">
<td ng-bind="aMetaRules.name"></td>
<td ng-bind="aMetaRules.description"></td>
<td ng-bind="aMetaRules.subject_categories.length"></td>
<td ng-bind="aMetaRules.object_categories.length"></td>
<td ng-bind="aMetaRules.action_categories.length"></td>
<td>
<div ng-if="list.editMode">
<div ng-if="!value.loader" class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
<span data-translate="moon.model.metadata.table.action.title">Actions</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li>
<a href="" ng-click="list.unmap.showModal(aMetaRules)" >
<span class="glyphicon glyphicon-transfer"></span>
<span class="control-label" data-translate="moon.model.metarules.action.remove">Remove</span>
</a>
</li>
<li>
<a href="" ng-click="list.edit.showModal(aMetaRules)">
<span class="glyphicon glyphicon-cog"></span>
<span class="control-label" data-translate="moon.model.metarules.action.edit">Edit</span>
</a>
</li>
</ul>
</div>
</div>
<div ng-if="!list.editMode">
<a href="" ng-click="list.showDetail(aMetaRules)">
<span ng-if="aMetaRules.id !== list.getShowDetailValue().id">
<span class="glyphicon glyphicon-eye-open"></span>
<span class="control-label" data-translate="moon.model.metarules.action.detail.open">Consult</span>
</span>
<span ng-if="aMetaRules.id === list.getShowDetailValue().id">
<span class="glyphicon glyphicon-eye-close"></span>
<span class="control-label" data-translate="moon.model.metarules.action.detail.close">Close</span>
</span>
</a>
</div>
</td>
</tr>
</tbody>
</table>
<div ng-if="list.showDetailValue">
<moon-meta-data-list edit-mode="list.editMode" meta-rule="list.getShowDetailValue()"></moon-meta-data-list>
</div>
</div>
<div class="form-group" ng-if="list.editMode">
<a href="" ng-click="list.map.showModal()" class="btn btn-default">
<span class="glyphicon glyphicon-link"></span>
<span data-translate="moon.model.metarules.action.settings">Settings</span>
</a>
</div>
</div>
|