948e505f944c8c66987aa1b3ddb1e160c94022b3
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / templates / main-table-modal.html
1 <table class="table table-condensed table-modal-condensed mb0">
2     <thead>
3         <tr>
4             <th>
5                 <a href="" ng-click="order('model.name')">
6                     Name
7                     <span class="sortorder" ng-show="predicate[1] === 'model.name'" ng-class="{reverse:reverse}"></span>
8                 </a>
9             </th>
10             <th class="text-right"></th>
11         </tr>
12     </thead>
13     <tbody class="file-item">
14         <tr ng-show="policyNavigator.requesting">
15             <td colspan="2">
16                 <div ng-include="config.tplPath + '/spinner.html'"></div>
17             </td>
18         </tr>
19         <tr ng-show="!policyNavigator.requesting && !policyNavigator.listHasFolders() && !policyNavigator.error">
20             <td colspan="2">
21                 No Sub Scopes in Scope...
22             </td>
23             <td class="text-right">
24                 <button class="btn btn-sm btn-default" ng-click="policyNavigator.upDir()">Go back</button>
25             </td>
26         </tr>
27         <tr ng-show="!policyNavigator.requesting && policyNavigator.error">
28             <td colspan="2">
29                 {{ policyNavigator.error }}
30             </td>
31         </tr>
32         <tr ng-repeat="item in policyNavigator.fileList | orderBy:predicate:reverse" ng-show="!policyNavigator.requesting && item.model.type === 'dir'">
33             <td>
34                 <a href="" ng-click="policyNavigator.folderClick(item)" title="{{item.model.name}} ({{item.model.sizeKb()}}kb)">
35                     <i class="glyphicon glyphicon-folder-close"></i>
36                     {{item.model.name | strLimit : 32}}
37                 </a>
38             </td>
39             <td class="text-right">
40                 <button class="btn btn-sm btn-default" ng-click="select(item, temp)">
41                     <i class="glyphicon glyphicon-hand-up"></i> Select this
42                 </button>
43             </td>
44         </tr>
45     </tbody>
46 </table>