Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / policyApp / policy-models / Editor / src / templates / main-table.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 mb0 table-files">
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="hidden-sm hidden-xs">
31                 <a href="" ng-click="order('model.version')">
32                     Version
33                     <span class="sortorder" ng-show="predicate[1] === 'model.version'" ng-class="{reverse:reverse}"></span>
34                 </a>
35             </th>
36             <th class="hidden-sm hidden-xs">
37                 <a href="" ng-click="order('model.date')">
38                     {{"date" | translate}}
39                     <span class="sortorder" ng-show="predicate[1] === 'model.date'" ng-class="{reverse:reverse}"></span>
40                 </a>
41             </th>
42               <th class="hidden-sm hidden-xs">
43                 <a href="" ng-click="order('model.createdBy')">
44                     Created By
45                     <span class="sortorder" ng-show="predicate[1] === 'model.createdBy'" ng-class="{reverse:reverse}"></span>
46                 </a>
47             </th>
48               <th class="hidden-sm hidden-xs">
49                 <a href="" ng-click="order('model.modifiedBy')">
50                    Modified By
51                     <span class="sortorder" ng-show="predicate[1] === 'model.modifiedBy'" ng-class="{reverse:reverse}"></span>
52                 </a>
53             </th>
54             <th class="hidden-sm hidden-xs">
55             <a href="">Watch Policy <span  ng-class="{reverse:reverse}"></span></a>
56             </th>
57         </tr>
58     </thead>
59     <tbody class="file-item">
60         <tr ng-show="fileNavigator.requesting">
61             <td colspan="5">
62                 <div ng-include="config.tplPath + '/spinner.html'"></div>
63             </td>
64         </tr>
65         <tr ng-show="!fileNavigator.requesting && fileNavigator.fileList.length < 1 && !fileNavigator.error">
66             <td colspan="5">
67                 {{"no_files_in_folder" | translate}}...
68             </td>
69         </tr>
70         <tr ng-show="!fileNavigator.requesting && fileNavigator.error">
71             <td colspan="5">
72                 {{ fileNavigator.error }}
73             </td>
74         </tr>
75         <tr ng-repeat="item in fileNavigator.fileList | filter: {model:{name: query}} | orderBy:predicate:reverse" ng-show="!fileNavigator.requesting">
76             <td ng-right-click="touch(item)">
77                 <a href="" ng-click="smartClick(item)" title="{{item.model.name}} ({{item.model.sizeKb()}}kb)">
78                     <i class="glyphicon glyphicon-folder-close" ng-show="item.model.type === 'dir'"></i>
79                     <i class="glyphicon glyphicon-file" ng-show="item.model.type === 'file'"></i>
80                     {{item.model.name | strLimit : 64}}
81                 </a>
82             </td>
83             <td class="hidden-xs">
84                 {{item.model.version}}
85             </td>
86             <td class="hidden-sm hidden-xs">
87                 {{item.model.date | formatDate }}
88             </td>
89             <td class="hidden-sm hidden-xs">
90                 {{item.model.createdBy}}
91             </td>
92             <td class="hidden-sm hidden-xs">
93                 {{item.model.modifiedBy}}
94             </td>
95             <td class="hidden-sm hidden-xs">
96                 <div ng-include="config.tplPath + '/item-toolbar.html'"></div>
97             </td>
98         </tr>
99     </tbody>
100 </table>