Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / app / views / home / applications-home / applications-home.tpl.html
diff --git a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.tpl.html b/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.tpl.html
new file mode 100644 (file)
index 0000000..645807f
--- /dev/null
@@ -0,0 +1,59 @@
+<!--
+  ================================================================================
+  eCOMP Portal
+  ================================================================================
+  Copyright (C) 2017 AT&T Intellectual Property
+  ================================================================================
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+  
+       http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  ================================================================================
+  -->
+<div class="w-ecomp-applications-home" ng-style="{bottom: tabBottom}">
+    <div class="applications-home-container">
+        <div id="app-home-title" class="applications-home-title" >Applications</div>
+        <div align="center" id="errorInfo" style="display:none;font-size:12px;margin-left:5px">
+            <span style="color:red">You don't have user account in that application.Please ask system administrator </span></div>
+        <div class="portals-list">
+            <div class="gridster-container override_background">
+                <span class="ecomp-spinner" ng-show="applicationsHome.isLoading" ></span>
+                <div att-gridster att-gridster-options="applicationsHome.gridsterOpts"   >
+                    <div att-gridster-item='item' ng-repeat="item in appsViewData" id="app-{{item.headerText.split(' ').join('-')}}" >
+                        <div id="grips-{{item.headerText.split(' ').join('-')}}" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone"
+                             att-gridster-item-header grips-img-path="assets/images/grips.png"
+                             header-text="{{item.headerText | elipsis: 33}}" sub-header-text="{{item.subHeaderText  | elipsis: 56}}" class="app-gridster-header">
+                        </div>
+                        <div id="app-image-{{item.headerText.split(' ').join('-')}}"att-gridster-item-body
+                             ng-style="{'cursor':'pointer',
+                             'background-image': 'url('+(item.imageLink)+')',
+                             'order': item.order,
+                             'background-repeat': 'no-repeat'}"
+                             ng-click="applicationsHome.goToPortal(item)" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
+                        </div>
+                        <div att-gridster-item-footer class="app-gridster-footer" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
+                            <span id="go-{{item.headerText.split(' ').join('-')}}" class="go-button" ng-click="applicationsHome.goToPortal(item)" >GO</span>
+                        </div>
+                    </div>
+                </div>
+            </div>
+            <div>
+                <div id="app-home-disclaimer" class="w-ecomp-main-error" ng-if="appsViewData.length==0" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
+                    You do not have access to any application/functionality within OpenECOMP Portal. Please contact your administrator to get access to ECOMP Portal</a><br>
+                </div>
+            </div>
+        </div>
+        <div id="app-home-disclaimer-mylogins" class="w-ecomp-main-disclaimer">
+
+            <p id="build-number" class="build-number" ng-bind-html="buildNumber"></p>
+        </div>
+
+    </div>
+</div>