2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 <div class="ReportMain">
22 <div class="heading"><img src="static/images/compare.png" width=45 height="40" style="margin-left:5px;"> Compare Configruation</div>
23 <form name="myForm" class="Formclass">
25 <div class="row" style="background-color:#f2f2f2;width:100%;margin-left:1px; border: 1px solid #ddd;">
26 <div class="column" style="width:30%;background-color:#f2f2f2;height:55px;margin-left:40px;">
27 <label class="labeltext">Select Avaliable VNF</label>
29 <div class="column" style="background-color:#f2f2f2;width:60%;height:55px;margin-left:0px;">
30 <select class="form-control" style="width:100%;margin-top:0px;" ng-model="selectedValueVnf" ng-change="selectVnf(selectedValueVnf)">
31 <option ng-repeat="vnf in objvnfList" value="{{vnf.vnfid}}">VnfId- {{vnf.vnfid}} VnfName- {{vnf.vnfname}}</option>
32 <option value="">Select VNFId</option>
36 <table class="tableDisplay" ng-show="ShowResult" id="tableToExport" style="margin-top:15px;">
37 <tr class="first_row" style="background-color:#6D7B8D;">
48 <tr ng-repeat="version in pagedItems[currentPage] | orderBy:sort.sortingOrder:sort.reverse">
49 <td>{{ ($index + 1) + (currentPage - 1) * itemsPerPage + 5}}</td>
50 <td>{{version.vnfversion}}</td>
51 <td>{{version.createdAt}}</td>
52 <td>{{version.updatedAt}}</td>
53 <td><input type=checkbox ng-model="version.selected">
57 <td colspan="5" ng-if="pagedItems.length > 5">
58 <!-- ng-show="pagedItems.length > 5" -->
59 <ul class="pagination pull-right">
60 <li ng-class="{disabled: currentPage == 0}"><a href
61 ng-click="prevPage()">«</a></li>
62 <li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) "
63 ng-class="{active: n == currentPage}" ng-click="setPage()"><a
64 href ng-bind="n + 1">1</a></li>
65 <li ng-class="{disabled: (currentPage) == pagedItems.length - 1}">
66 <a href ng-click="nextPage()">»</a>
73 <div class="row pull-right">
74 <button type="button" class="btnview" ng-click="ViewConfig(objVersion)" ng-show="showView" ng-model="version.selected" >View Config</button>
75 <button type="button" class="btnapplycfg" ng-click="ApplyConfig(objVersion)" >Apply Config</button>
76 <button type="button" class="btnCompareVersion" ng-click="CompareConfig(objVersion)" ng-show="showCompare" ng-model="version.selected" >Compare Config</button>
81 <div id="compare" ng-form = "compare" ng-include="" src="'static/views/form-deviceConfig.html'"></div>
82 <div id="view" ng-form = "view" ng-include="" src="'static/views/form-deviceConfigView.html'"></div>