Modify html label to support multi-language
[portal.git] / ecomp-portal-FE-common / client / app / views / dashboard / dashboard.tpl.html
index 9a87c0b..171fd09 100644 (file)
@@ -1,36 +1,51 @@
 <!--
-  ================================================================================
-  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.
+  ============LICENSE_START==========================================
+  ONAP Portal
+  ===================================================================
+  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+  ===================================================================
+  Unless otherwise specified, all software contained herein is licensed
+  under the Apache License, Version 2.0 (the "License");
+  you may not use this software except in compliance with the License.
   You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
+              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.
-  ================================================================================
+  Unless otherwise specified, all documentation contained herein is licensed
+  under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+  you may not use this documentation except in compliance with the License.
+  You may obtain a copy of the License at
+              https://creativecommons.org/licenses/by/4.0/
+  Unless required by applicable law or agreed to in writing, documentation
+  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.
+  ============LICENSE_END============================================
+  
   -->
 <div class="w-ecomp-dashboard-home" id="widgets">
        <div class="dashboard-home-container" id="page-content">
-               <div align="center" id="errorInfo"
-                       style="display: none; font-size: 12px; margin-left: 5px">
-                       <span style="color: red">You don't have a user account in that
-                               application. Please ask the system administrator. </span>
+               <div align="center" id="errorInfo" class="error-info-txt">
+                       <span class="">{{'No account'|T}}. </span>
                </div>
-               <div class="portals-list" style="margin-bottom: 0px;">
+               <div class="portals-list">
                        <div>
                                <div class="simulateGridHeader">
-                                       <span class="simulateGridHeaderTitle">Applications <span
-                                               class="dashboardSortHeader">Sort by:</span>
-                                               
-                                               <div id="dashboard-dropdown">
+                                       <span class="simulateGridHeaderTitle">{{'Applications'|T}}<span
+                                               class="dashboardSortHeader">{{'Sort by'|T}}:</span>
+                                               <div class="dashboard-dropdown" id="sort-by-dropdownid-{{selectedSortType.value}}">
                                                <select id="sort-by-{{selectedSortType.value}}" name="dropdown1" b2b-dropdown  ng-model="selectedSortType.value" ng-change="selectedSortTypeChanged(selectedSortType.value)">  
                                        <option b2b-dropdown-list option-repeat="d in sort_options" value="{{d.value}}">{{d.title}}</option>
                                                </select>
                                                <div ng-if="appsViewData.length==0">
                                                        <div class="app-error-block">
                                                                <i class="icon-information full-linear-icon-information"
-                                                                       style="margin-left: 50%; font-size: 90px; color: black"></i> <br>
-                                                               <div class="activity-error-msg1">
-                                                                       You do not have access to any application or function in ECOMP
-                                                                       Portal.
+                                                                       class="icon-info"></i> <br>
+                                                               <div class="activity-error-msg1">                                                                       
                                                                        <div ng-include src="'app/views/dashboard/dashboard-extension.tpl.html'"></div>
                                                                </div>
                                                        </div>
                                                                                        'background-image': 'url('+(item.imageLink)+')',
                                                                                        'background-color':'white',
                                                                                        'background-repeat': 'no-repeat',
-                                                                                       'background-size': '170px 130px'}"
+                                                                                       'background-size': '168px 118px'}"
                                                                                        ng-click="dashboard.goToPortal(item);dashboard.auditLog(item)"
                                                                                        ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
                                                                                </div>
                                                                        </div>
                                                                        <div class="gridster-box" ng-if="item.addRemoveApps">
-                                                                               <div class="gridster-box-header" style="cursor: pointer;"
+                                                                               <div class="gridster-box-header gridster-box-pointer"
                                                                                        ng-click="dashboard.goToCatalog()">
                                                                                        <i class="icon-content-gridguide"></i>
-                                                                                       <h3>Select applications...</h3>
-
+                                                                                       <h3>{{'Select applications'|T}}...</h3>
                                                                                </div>
                                                                                <div class="gridster-box-content"
                                                                                id="gridster-personalize"
                                                                                'padding': '4px',
                                                                                'opacity': '1'}"
                                                                                        ng-click="dashboard.goToCatalog()" class="gridsterContent">
-                                                                                       <label id="add-icon-label"  style="font-size: 12px;">Click
-                                                                                               here to personalize <br> this applications page
-                                                                                       </label> <i  id="add-icon" class="icon-controls-add-maximize"
-                                                                                               style="font-size: 80px; color: #067ab4"></i>
+                                                                                       <label id="add-icon-label" class="gridster-txt">{{'Click
+                        here to personalize'|T}} <br> {{'this applications page'|T}}
+                                                                                       </label>
+                      <i id="add-icon" class="icon-controls-add-maximize"
+                                                                                               class="gridster-icon"></i>
                                                                                </div>
                                                                        </div>
                                                                </li>
 
                        <br> <br>
 
-
-                       <div 
-                               ng-show=dashboard.isCommError>Failed to communicate with the
-                               widget microservice.</div>
-                       
+                       <div class="simulateGridHeader">
+                               <span class="simulateGridHeaderTitle">{{'Widgets'|T}}</span>
+                       </div>
+                       <div ng-show=dashboard.isCommError>{{'widget microservice failed'|T}}.</div>
                        <div id="widget-boarder" class="content" gridster="dashboard.gridsterWidgetOpts">
                                <ul>
                                        <li gridster-item="widget" ng-repeat="widget in widgetsViewData">
                                                <div class="box">
                                                        <div class="box-header">
-                                                       <i id="widget-gridster-{{widget.headerText.split(' ').join('-')}}-icon" style="cursor:move;" class="icon-content-gridguide"></i>
+                                                       <i id="widget-gridster-{{widget.headerText.split(' ').join('-')}}-icon" class="icon-content-gridguide widget-gridster"></i>
                                                                <h3>{{ widget.headerText}}</h3>
                                                                <div class="box-header-btns pull-right"
                                                                        ng-if="isAdminPortalAdmin == true" class="ng-scope">
-                                                                               <a id="widgetHeaderBtns"
-                                                                                       class="widgetHeaderBtn widgetHeaderBtnPosition singleBtnBorder"
-                                                                                       ng-class="singleBtnBorder" alt="Settings"
-                                                                                       ng-mousedown="showImpResOption=!showImpResOption"
-                                                                                       ng-mouseleave="showImpResOption=false" title="Settings"
-                                                                                       ddh-accessibility-click="13,32" tabindex="0"><span
-                                                                                       style="color: #888;"><img
-                                                                                       ng-src="assets/images/generic.png"
-                                                                                       style="margin-bottom: 3px; margin-left: 3px;" alt="..."
-                                                                                       aria-label="Tap or Click to move"
-                                                                                       src="assets/images/generic.png"></span></a>
-
-                                                                               <ul class="optionsMenu"
-                                                                                       style="display: block"
-                                                                                       ng-show="showImpResOption"
-                                                                                       ng-mouseenter="showImpResOption=true"
-                                                                                       ng-mouseleave="showImpResOption=false">
-                                                                                       <!-- ngIf: widget.duplicateAllowed -->
-                                                                                       <li ng-show="widget.widgetIdentifier != ''"
-                                                                                               ng-click="editWidgetModalPopup(importResData, widget.widgetIdentifier);">
-                                                                                               <a id="edit-widget-popup" class="optionsMenuLink" href="javascript:void(0)"
-                                                                                               ddh-accessibility-click="13,32">Edit</a>
-                                                                                       </li>
-                                                                                       
-                                                                                       <li
-                                                                                               ng-click="editWidgetParameters(widget.widgetid);">
-                                                                                               <a id="parameters-widget-popup" class="optionsMenuLink" href="javascript:void(0)"
-                                                                                               ddh-accessibility-click="13,32">Parameters</a>
-                                                                                       </li>
-                                                                                       
-                                                                                       <!-- end ngIf: widget.duplicateAllowed  -->
-                                                                               </ul>
-
+                                                                       <span id="widgetHeaderBtns-{{widget.headerText.split(' ').join('-')}}"
+                                                                               class="widgetHeaderBtn widgetHeaderBtnPosition singleBtnBorder"
+                                                                               ng-class="singleBtnBorder" alt="Settings"
+                                                                               ng-mousedown="showImpResOption=!showImpResOption"
+                                                                               ng-mouseleave="showImpResOption=false" title="Settings"
+                                                                               ddh-accessibility-click="13,32" tabindex="0">
+                                                           <span class="widgetHeaderBtns-span">
+                                                             <span class="icon-controls-moreapplications"></span>
+                                                           </span>
+                                                         </span>
+                                                                       <ul class="optionsMenu widget-menu-options"                                                                                     
+                                                                               ng-show="showImpResOption"
+                                                                               ng-mouseenter="showImpResOption=true"
+                                                                               ng-mouseleave="showImpResOption=false">
+                                                                               <!-- ngIf: widget.duplicateAllowed -->
+                                                                               <li ng-show="widget.widgetIdentifier != ''"
+                                                                                       ng-click="editWidgetModalPopup(importResData, widget.widgetIdentifier);">
+                                                                                       <a id="edit-widget-popup" class="optionsMenuLink" href="javascript:void(0)" ddh-accessibility-click="13,32">{{'Edit'|T}}</a>
+                                                                               </li>
+                                                                               <li ng-click="editWidgetParameters(widget.widgetid);">
+                                                                                       <a id="parameters-widget-popup" class="optionsMenuLink" href="javascript:void(0)" ddh-accessibility-click="13,32">{{'Parameters'|T}}</a>
+                                                                               </li>
+                                                                               <!-- end ngIf: widget.duplicateAllowed  -->
+                                                                       </ul>
                                                                </div>
                                                        </div>
                                                        <div class="box-content">
                                <div id="dashboardAddWidgetPreference"
                                        ng-style="{'cursor':'pointer'}"
                                        ng-click="dashboard.goToWidgetCatLog()">
-                                       <i class="icon-controls-add-maximize"></i> Add Widget
+                                       <i class="icon-controls-add-maximize"></i>{{'Add Widget'|T}} 
                                </div>
                                &nbsp;
                                <div id="dashboardDefaultPreference" ng-style="{'cursor':'pointer'}"
                                        ng-click="restoreSortSelected()">
-                                       <i class="icon-arrows-replay-restart"></i> Reset Widget Layout
+                                       <i class="icon-arrows-replay-restart"></i> {{'Reset Widget Layout'|T}} 
                                </div>
                        </div>
                </div>