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">
23 <img src="static/images/search.png" width=50 height="40"
24 style="margin-left: 5px;"> Search For Vnf Reports
26 <form name="myForm" style="background-color: #f2f2f2;">
29 <div class="column" style="width: 40%;">
30 <label for="exampleInput" class="labeltext">Start Date</label> <input
31 type="date" id="exampleInput" name="input"
32 ng-model="startdate.value" placeholder="yyyy-MM-dd"
33 style="margin-left: 20px; width: 170px;" required />
35 <span class="error" ng-show="myForm.input.$error.required">Required!</span>
36 <span class="error" ng-show="myForm.input.$error.date">Not a
40 <div class="column" style="margin-left: 0px; width: 50%;">
41 <label for="exampleEndInput" class="labeltext">End Date</label> <input
42 type="date" id="exampleEndInput" name="input"
43 ng-model="enddate.value" placeholder="yyyy-MM-dd"
44 style="margin-left: 20px; width: 170px;" required />
46 <span class="error" ng-show="myForm.input.$error.required">
47 Required!</span> <span class="error" ng-show="myForm.input.$error.date">
48 Not a valid date!</span>
54 <input type="submit" id="btnSubmit"
55 ng-click="getReports(startdate.value,enddate.value)"
56 style="width: 120px;">
59 <table class="tableDisplay"
60 style="text-align: center;" ng-show="showresult" id="tableToExport">
61 <tr class="first_row">
62 <th style="text-align: center;">SNo.</th>
63 <th style="text-align: center;">Time Period</th>
64 <th style="text-align: center;">Vnf Name</th>
65 <th style="text-align: center;">Vnf Id</th>
67 <tr ng-repeat="version in pagedItems[currentPage] | orderBy:sort.sortingOrder:sort.reverse">
68 <td>{{ ($index + 1) + (currentPage - 1) * itemsPerPage + 5}}</td>
69 <td>{{version.createdAt}}</td>
70 <td>{{version.vnfname }}</td>
71 <td>{{version.vnfid}}</td>
73 <td colspan="4" ng-show="pagedItems.length > 5" >
74 <!-- ng-show="pagedItems.length > 5" -->
75 <ul class="pagination pull-right" >
76 <li ng-class="{disabled: currentPage == 0}"><a href
77 ng-click="prevPage()">«</a></li>
78 <li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) "
79 ng-class="{active: n == currentPage}" ng-click="setPage()"><a
80 href ng-bind="n + 1">1</a></li>
81 <li ng-class="{disabled: (currentPage) == pagedItems.length - 1}">
82 <a href ng-click="nextPage()">»</a>