Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / policyApp / policy-models / Editor / src / templates / main-table-modal.html
1 <!--
2   ============LICENSE_START=======================================================
3   ECOMP Policy Engine
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
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
21 <table class="table table-condensed table-modal-condensed mb0">
22     <thead>
23         <tr>
24             <th>
25                 <a href="" ng-click="order('model.name')">
26                     {{"name" | translate}}
27                     <span class="sortorder" ng-show="predicate[1] === 'model.name'" ng-class="{reverse:reverse}"></span>
28                 </a>
29             </th>
30             <th class="text-right"></th>
31         </tr>
32     </thead>
33     <tbody class="file-item">
34         <tr ng-show="fileNavigator.requesting">
35             <td colspan="2">
36                 <div ng-include="config.tplPath + '/spinner.html'"></div>
37             </td>
38         </tr>
39         <tr ng-show="!fileNavigator.requesting && !fileNavigator.listHasFolders() && !fileNavigator.error">
40             <td colspan="2">
41                 {{"no_folders_in_folder" | translate}}...
42             </td>
43             <td class="text-right">
44                 <button class="btn btn-sm btn-default" ng-click="fileNavigator.upDir()">{{"go_back" | translate}}</button>
45             </td>
46         </tr>
47         <tr ng-show="!fileNavigator.requesting && fileNavigator.error">
48             <td colspan="2">
49                 {{ fileNavigator.error }}
50             </td>
51         </tr>
52         <tr ng-repeat="item in fileNavigator.fileList | orderBy:predicate:reverse" ng-show="!fileNavigator.requesting && item.model.type === 'dir'">
53             <td>
54                 <a href="" ng-click="fileNavigator.folderClick(item)" title="{{item.model.name}} ({{item.model.sizeKb()}}kb)">
55                     <i class="glyphicon glyphicon-folder-close"></i>
56                     {{item.model.name | strLimit : 32}}
57                 </a>
58             </td>
59             <td class="text-right">
60                 <button class="btn btn-sm btn-default" ng-click="select(item, temp)">
61                     <i class="glyphicon glyphicon-hand-up"></i> {{"select_this" | translate}}
62                 </button>
63             </td>
64         </tr>
65     </tbody>
66 </table>