Merge "Use AAAShiroFilter as TokenAuthFilter was deprecated in Be"
[groupbasedpolicy.git] / groupbasedpolicy-old-ui / module / src / main / resources / gbp-old / views / box / contract-content-static.tpl.html
1 <div ng-controller="boxStaticCtrl" class="simpleBox maxHeight500">
2     <h2 class="text-center">Contract</h2>
3
4     <section class="formWrapper clearfix">
5
6         <div class="rowWrapper">
7             <label class="block mb0">Id:</label>
8             <span class="block">{{selectedObj.id}}</span>
9         </div>
10
11         <div class="rowWrapper" ng-hide="!selectedObj.description">
12             <label class="block mb0">Description:</label>
13             <span class="block">{{selectedObj.description}}</span>
14         </div>
15
16         <div class="rowWrapper" ng-hide="!selectedObj.parent">
17             <label class="block mb0">Parent:</label>
18             <span class="block">{{selectedObj.parent}}</span>
19         </div>
20
21     </section>
22
23     <section class="formWrapper clearfix" ng-show="selectedObj['clause']" ng-repeat="clause in selectedObj['clause'] track by $index">
24         <label class="block">Clause</label>
25
26         <div class="rowWrapper">
27             <label class="block mb0">Name:</label>
28             <span>{{clause.name}}</span>
29         </div>
30
31         <div class="rowWrapper">
32             <label class="block mb0">Clause subjects:</label>
33             <span class="block" ng-repeat="subj in clause['subject-refs'] track by $index">{{subj}}</span>
34         </div>
35     </section>
36
37
38     <section class="formWrapper clearfix" ng-repeat="subject in selectedObj['subject']" ng-show="selectedObj['subject']">
39         <label class="block">Subject</label>
40         <div class="rowWrapper">
41             <label class="block mb0">Name:</label>
42             <span class="block">{{subject.name}}</span>
43             <!-- <input class="form-control" type="text" ng-model="selectedObj.name" ng-disabled="true"/> -->
44         </div>
45
46         <div class="rowWrapper" ng-show="subject['providers']">
47             <label class="block">Provider list:</label>
48             <span class="block" ng-repeat="provider in subject['providers'] track by $index">
49                 {{provider}}
50             </span>
51         </div>
52
53         <div class="rowWrapper" ng-show="subject['consumers']">
54             <label class="block">Consumer list:</label>
55             <span class="block" ng-repeat="consumer in subject['consumers'] track by $index">
56                 {{consumer}}
57             </span>
58         </div>
59
60         <div class="rowWrapper" ng-show="subject['rule']" ng-repeat="rule in subject['rule'] track by $index">
61             <label class="block">Rule</label>
62             <section class="ml10">
63                 <label class="basicLabel">Name:</label>
64                 <span>{{rule.name}}</span>
65
66
67                 <section class="mb10" ng-repeat="classifier in rule['classifier-ref'] track by $index" ng-show="rule['classifier-ref']">
68                     <label class="block mb0"><span>Classifier ref</span></label>
69
70                     <div>
71                         <label class="basicLabel mb0">Name:</label>
72                         <span>{{classifier.name}}</span>
73                     </div>
74
75                     <div>
76                         <label class="basicLabel mb0">Instance name:</label>
77                         <span>{{classifier['instance-name']}}</span>
78                     </div>
79
80                     <div ng-show="classifier.direction">
81                         <label class="basicLabel mb0">Direction:</label>
82                         <span>{{classifier.direction}}</span>
83                     </div>
84
85                     <div ng-show="classifier.direction">
86                         <label class="basicLabel mb0">Connection tracking:</label>
87                         <span>{{classifier['connection-tracking']}}</span>
88                     </div>
89                     
90                 </section>
91
92                 <label class="block mb0"><span>Action ref</span> <button class="btn btn-primary" ng-click="showWizard('actionReferenceWizard', 'ACTION_RULE_WIZARD_LOAD', rule, {tenantId: selectedTenant.id, contractId: selectedObj.id, subjectId: subject.name, ruleId: rule.name})">Manage</button></label>
93                 <section class="mb10" ng-show="rule['action-ref']" ng-repeat="action in rule['action-ref'] track by $index">
94                         <div class="rowWrapper">
95                             <label class="basicLabel mb0">Name:</label>
96                             <span>{{action.name}}</span>
97                         </div>
98
99                 </section>
100
101             </section>
102         </div>
103
104     </section>
105
106 </div>