Add license to policy-engine files
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / templates / main-table-modal.html
1 <!--
2   ============LICENSE_START==================================================
3   ONAP Policy Engine
4   ===========================================================================
5   Copyright (C) 2017-2018 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
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
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====================================================
19   -->
20 <table class="table table-condensed table-modal-condensed mb0">
21     <thead>
22         <tr>
23             <th>
24                 <a href="" ng-click="order('model.name')">
25                     Name
26                     <span class="sortorder" ng-show="predicate[1] === 'model.name'" ng-class="{reverse:reverse}"></span>
27                 </a>
28             </th>
29             <th class="text-right"></th>
30         </tr>
31     </thead>
32     <tbody class="file-item">
33         <tr ng-show="policyNavigator.requesting">
34             <td colspan="2">
35                 <div ng-include="config.tplPath + '/spinner.html'"></div>
36             </td>
37         </tr>
38         <tr ng-show="!policyNavigator.requesting && !policyNavigator.listHasFolders() && !policyNavigator.error">
39             <td colspan="2">
40                 No Sub Scopes in Scope...
41             </td>
42             <td class="text-right">
43                 <button class="btn btn-sm btn-default" ng-click="policyNavigator.upDir()">Go back</button>
44             </td>
45         </tr>
46         <tr ng-show="!policyNavigator.requesting && policyNavigator.error">
47             <td colspan="2">
48                 {{ policyNavigator.error }}
49             </td>
50         </tr>
51         <tr ng-repeat="item in policyNavigator.fileList | orderBy:predicate:reverse" ng-show="!policyNavigator.requesting && item.model.type === 'dir'">
52             <td>
53                 <a href="" ng-click="policyNavigator.folderClick(item)" title="{{item.model.name}} ({{item.model.sizeKb()}}kb)">
54                     <i class="glyphicon glyphicon-folder-close"></i>
55                     {{item.model.name | strLimit : 32}}
56                 </a>
57             </td>
58             <td class="text-right">
59                 <button class="btn btn-sm btn-default" ng-click="select(item, temp)">
60                     <i class="glyphicon glyphicon-hand-up"></i> Select this
61                 </button>
62             </td>
63         </tr>
64     </tbody>
65 </table>