[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-os / client / src / views / applications / applications.tpl.html
1 <!--
2   ================================================================================
3   eCOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
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   ================================================================================
19   -->
20 <div class="w-ecomp-main">
21     <div class="w-ecomp-main-container">
22
23         <div class="applications-page-main" id="page-content">
24             <div id='app-title' class="w-ecomp-main-view-title">
25                  <h1 class="heading-page" >Application Onboarding</h1>           
26             </div>
27             <div class="apps-table">
28                 <div class="table-control">
29                          <div class="table-control-fields">             
30                                                 <div >
31                                                         <input id="input-table-search" placeholder="Search in entire table" class="table-search-field" type="text" data-ng-model="searchAppName">
32                                                 </div>
33                                         </div>    
34                                         <div class="table-control-buttons">
35                                                 <button class="btn btn-alt btn-small" ng-click="apps.openAddNewAppModal()"><i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add App</button> 
36                                         </div> 
37                 </div>
38                 <span class="ecomp-spinner" ng-show="apps.isLoadingTable"></span>
39                 
40                 
41                 <div b2b-table table-data="apps.appsList"  ng-hide="apps.isLoadingTable"        search-string="searchAppName" class="b2b-table-div">
42                                         <table>
43                                                 <thead b2b-table-row type="header">
44                                                                 <th b2b-table-header id="col1" sortable="false" >Thumbnail</th>
45                                                                 <th b2b-table-header id="col2" key="name" sortable="true" >Application Name</th>
46                                                                 <th b2b-table-header id="col3" sortable="false" >Active?</th>
47                                                                 <th b2b-table-header id="col4" sortable="false" >Integration Type</th>
48                                                                 <th b2b-table-header id="col5" sortable="false" >Guest Access</th>
49                                     <th b2b-table-header id="app-header-URL" sortable="false">URL</th>
50                                     <th b2b-table-header id="app-header-RESTURL" sortable="false">REST URL</th>
51                                     <th b2b-table-header id="app-header-Topic" sortable="false">Communication Topic</th>
52                                     <th b2b-table-header id="app-header-CommKey" sortable="false">Communication Key</th>
53                                     <th b2b-table-header id="app-header-Secret" sortable="false">Communication Secret</th>
54                                     <th b2b-table-header id="app-header-delete" sortable="false">Delete</th>                                                                
55                                                         </tr>
56                                                 </thead>
57                                                 <tbody b2b-table-row type="body"        row-repeat="rowData in apps.appsList">
58                                                         <tr>
59                                                                 <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-click="apps.openAddNewAppModal(rowData)">
60                                                                         <img id="{{$index}}-app-imageUrl" class="small-thumbnail" ng-src="{{rowData.imageLink || apps.emptyImgForPreview}}">
61                                                                 </td>
62                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col2" ng-bind="rowData.name" ng-click="apps.openAddNewAppModal(rowData)"></td>
63                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col3" ng-click="apps.openAddNewAppModal(rowData)">{{(rowData.isEnabled) ? 'yes' : 'no'}}</td>
64                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col4" ng-click="apps.openAddNewAppModal(rowData)">{{(rowData.restrictedApp) ? 'link' : 'standard'}}</td>            
65                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col5" ng-click="apps.openAddNewAppModal(rowData)">{{(rowData.isOpen) ? 'yes' : 'no'}}</td>                  
66                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col7" ng-click="apps.openAddNewAppModal(rowData)">{{rowData.url | elipsis: 27}}</td>        
67                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col8" ng-click="apps.openAddNewAppModal(rowData)">{{rowData.restUrl | elipsis: 27}}</td>    
68                                                         <td b2b-table-body headers="rowheader_t1_{{$index}} col11" ng-click="apps.openAddNewAppModal(rowData)"ng-bind="rowData.uebTopicName"></td>      
69                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col12" ng-click="apps.openAddNewAppModal(rowData)"ng-bind="rowData.uebKey"></td>    
70                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col13" ng-click="apps.openAddNewAppModal(rowData)"ng-bind="rowData.uebSecret"></td> 
71                                                         <td b2b-table-body headers="rowheader_t1_{{$index}} col14" >
72                                                                 <span class="icon-misc-trash" ng-click="apps.deleteApp(rowData)"></span>
73                                                         </td>           
74                                                         </tr>
75                                                 </tbody>
76                                         </table>
77                                 </div>               
78             </div>
79         </div>
80     </div>
81 </div>