2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
21 <div id="context-menu" class="dropdown clearfix animated fast fadeIn">
22 <ul class="dropdown-menu dropdown-right-click" ng-hide="isDisabled" role="menu" aria-labelledby="dropdownMenu" style="">
24 <li ng-show="temp.isFolder()">
25 <a href="" tabindex="-1" data-toggle="modal" data-target="#addSubScope" ng-show="createScopeId" ng-click="temp.getScopeContent();">
26 <i class="glyphicon glyphicon-plus"></i>Add Sub Scope
29 <li ng-show="config.allowedActions.createNewPolicy && temp.isFolder()">
30 <a href="" tabindex="-1" data-toggle="modal" data-target="#createNewPolicy" ng-show="createPolicyId">
31 <i class="glyphicon glyphicon-plus"></i>Create Policy
34 <li ng-show="config.allowedActions.describePolicy && !temp.isFolder()">
35 <a href="" tabindex="-1" data-toggle="modal" data-target="#describePolicy" ng-show="describePolicyId" ng-click="temp.getDescribePolicyContent();">
36 <i class="glyphicon glyphicon-picture"></i>Describe Policy
39 <li ng-show="config.allowedActions.viewPolicy && !temp.isFolder()">
40 <a href="" tabindex="-1" data-toggle="modal" data-target="#createNewPolicy" ng-show="viewPolicyId" ng-click="temp.getViewPolicyContent();">
41 <i class="glyphicon glyphicon-picture"></i> View Policy
44 <li ng-show="config.allowedActions.rename && !temp.isFolder()">
45 <a href="" tabindex="-1" data-toggle="modal" data-target="#rename" ng-show="renameId">
46 <i class="glyphicon glyphicon-edit"></i> Rename Policy
49 <li ng-show="config.allowedActions.rename && temp.isFolder()">
50 <a href="" tabindex="-1" data-toggle="modal" data-target="#move" ng-show="renameId">
51 <i class="glyphicon glyphicon-edit"></i> Move Scope
54 <li ng-show="config.allowedActions.rename && !temp.isFolder()">
55 <a href="" tabindex="-1" data-toggle="modal" data-target="#move" ng-show="renameId">
56 <i class="glyphicon glyphicon-edit"></i> Move Policy
59 <li ng-show="config.allowedActions.rename && temp.isFolder()" >
60 <a href="" tabindex="-1" data-toggle="modal" data-target="#rename" ng-show="renameId">
61 <i class="glyphicon glyphicon-edit"></i> Rename Scope
64 <li ng-show="config.allowedActions.copy && !temp.isFolder()">
65 <a href="" tabindex="-1" data-toggle="modal" data-target="#copy" ng-show="cloneId">
66 <i class="glyphicon glyphicon-log-out"></i> Clone policy
69 <li ng-show="config.allowedActions.edit && !temp.isFolder()">
70 <a href="" tabindex="-1" data-toggle="modal" data-target="#createNewPolicy" ng-show="editPolicyId" ng-click="temp.getContent();">
71 <i class="glyphicon glyphicon-pencil"></i> Edit Policy
74 <li ng-show="config.allowedActions.switchVersion && !temp.isFolder()">
75 <a href="" tabindex="-1" data-toggle="modal" data-target="#switchVersion" ng-show="switchVersionId" ng-click="temp.getSwitchVersionContent();">
76 <i class="glyphicon glyphicon-pencil"></i> Switch Version
79 <li ng-show="config.allowedActions.removePolicy && !temp.isFolder()">
80 <a href="" tabindex="-1" data-toggle="modal" data-target="#deletePolicy" ng-show="deletePolicyId">
81 <i class="glyphicon glyphicon-trash"></i> Delete Policy
84 <li ng-show="config.allowedActions.remove && temp.isFolder()">
85 <a href="" tabindex="-1" data-toggle="modal" data-target="#delete" ng-show="deleteScopeId">
86 <i class="glyphicon glyphicon-trash"></i> Delete Scope
90 <ul class="dropdown-menu dropdown-right-click" ng-show="isDisabled" role="menu" aria-labelledby="dropdownMenu" style="">
91 <li ng-show="config.allowedActions.describePolicy && !temp.isFolder()">
92 <a href="" tabindex="-1" data-toggle="modal" data-target="#describePolicy" ng-show="describePolicyId" ng-click="temp.getDescribePolicyContent();">
93 <i class="glyphicon glyphicon-picture"></i>Describe Policy
96 <li ng-show="config.allowedActions.viewPolicy && !temp.isFolder()">
97 <a href="" tabindex="-1" data-toggle="modal" data-target="#createNewPolicy" ng-show="viewPolicyId" ng-click="temp.getViewPolicyContent();">
98 <i class="glyphicon glyphicon-picture"></i> View Policy