blob: a1a6a54a790b18ed5d926da6078238daf1daabe2 (
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
<div class="container">
<div class="row">
<h3 class="pull-left" data-translate="moon.policy.edit.title" data-translate-values="{ policyName: edit.policy.name }">Edit</h3>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<span data-translate="moon.policy.edit.basic.title" >Basic Information</span>
<a href="" ng-click="edit.editBasic = !edit.editBasic">
<span data-translate="moon.policy.edit.update">Update</span>
<span class="glyphicon glyphicon-cog"></span>
</a>
</div>
<div class="panel-body">
<div ng-if="edit.editBasic">
<moon-policy-edit-basic policy="edit.policy"></moon-policy-edit-basic>
</div>
<div ng-if="!edit.editBasic">
<dl class="dl-horizontal">
<dt data-translate="moon.policy.edit.basic.form.id">Id</dt>
<dd ng-bind="edit.policy.id"></dd>
<dt data-translate="moon.policy.edit.basic.form.name">Name</dt>
<dd ng-bind="edit.policy.name"></dd>
<dt data-translate="moon.policy.edit.basic.form.genre">Genre</dt>
<dd ng-bind="edit.policy.genre"></dd>
<dt data-translate="moon.policy.edit.basic.form.model">Model</dt>
<dd>
<span ng-if="edit.loadingModel">
<moon-loader ng-if="edit.loadingModel"></moon-loader>
</span>
<span ng-if="!edit.loadingModel">
<span ng-bind="edit.policy.model.name" ></span>
</span>
</dd>
<dt data-translate="moon.policy.edit.basic.form.description">Description</dt>
<dd ng-bind="edit.policy.description"></dd>
</dl>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<span data-translate="moon.policy.edit.perimeter.title" >Perimeters</span>
<a href="" ng-click="edit.showPerimeters = !edit.showPerimeters">
<span ng-if="!edit.showPerimeters">
<span data-translate="moon.policy.edit.show.open">Show</span>
<span class="glyphicon glyphicon-eye-open"></span>
</span>
<span ng-if="edit.showPerimeters">
<span data-translate="moon.policy.edit.show.close">Show</span>
<span class="glyphicon glyphicon-eye-close"></span>
</span>
</a>
<!--<a href="" ng-if="edit.showPerimeters">
<span data-translate="moon.policy.edit.update">Update</span>
<span class="glyphicon glyphicon-cog"></span>
</a>-->
</div>
<div class="panel-body" ng-if="edit.showPerimeters">
<moon-perimeter-list edit-mode="true" policy="edit.policy" ></moon-perimeter-list>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<span data-translate="moon.policy.edit.data.title" >Data</span>
<a href="" ng-click="edit.showData = !edit.showData">
<span ng-if="!edit.showData">
<span data-translate="moon.policy.edit.show.open">Show</span>
<span class="glyphicon glyphicon-eye-open"></span>
</span>
<span ng-if="edit.showData">
<span data-translate="moon.policy.edit.show.close">Show</span>
<span class="glyphicon glyphicon-eye-close"></span>
</span>
</a>
<!--<a href="" ng-if="edit.showData">
<span data-translate="moon.policy.edit.update">Update</span>
<span class="glyphicon glyphicon-cog"></span>
</a>-->
</div>
<div class="panel-body" ng-if="edit.showData" > <!-- -->
<moon-data-list edit-mode="true" policy="edit.policy" ></moon-data-list>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<span data-translate="moon.policy.edit.rules.title" >Rules</span>
<a href="" ng-click="edit.showRules = !edit.showRules">
<span ng-if="!edit.showRules">
<span data-translate="moon.policy.edit.show.open">Show</span>
<span class="glyphicon glyphicon-eye-open"></span>
</span>
<span ng-if="edit.showRules">
<span data-showRules="moon.policy.edit.show.close">Close</span>
<span class="glyphicon glyphicon-eye-close"></span>
</span>
</a>
<!--<a href="" ng-if="edit.showRules">
<span data-translate="moon.policy.edit.update">Update</span>
<span class="glyphicon glyphicon-cog"></span>
</a>-->
</div>
<div class="panel-body" ng-if="edit.showRules">
<moon-rules-list edit-mode="true" policy="edit.policy" ></moon-rules-list>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<span data-translate="moon.policy.edit.assignments.title" >Assignments</span>
<a href="" ng-click="edit.showAssignments = !edit.showAssignments">
<span ng-if="!edit.showAssignments">
<span data-translate="moon.policy.edit.show.open">Show</span>
<span class="glyphicon glyphicon-eye-open"></span>
</span>
<span ng-if="edit.showAssignments">
<span data-showRules="moon.policy.edit.show.close">Close</span>
<span class="glyphicon glyphicon-eye-close"></span>
</span>
</a>
<!--<a href="" ng-if="edit.showRules">
<span data-translate="moon.policy.edit.update">Update</span>
<span class="glyphicon glyphicon-cog"></span>
</a>-->
</div>
<div class="panel-body" ng-if="edit.showAssignments">
<moon-assignments-list edit-mode="true" policy="edit.policy" ></moon-assignments-list>
</div>
</div>
</div>
|