You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
8.3 KiB

3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html lang="en" dir="">
  3. <html xmlns:th="http://www.thymeleaf.org">
  4. <head th:replace="~{fragments/modules/base/head :: head}"></head>
  5. <body>
  6. <div class="wrapper">
  7. <!-- header top menu Start -->
  8. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  9. <!-- header top menu end -->
  10. <div class="page-wrap">
  11. <!--=============== Left Menu side Start ================-->
  12. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  13. <!--=============== Left side End ================-->
  14. <div class="main-content">
  15. <div class="container-fluid">
  16. <div class="page-header">
  17. <div class="row align-items-end">
  18. <div class="col-lg-8">
  19. <div class="page-header-title">
  20. <i class="ik ik-layers bg-blue"></i>
  21. <div class="d-inline">
  22. <h5>PGR COMPLAINT AGE ANALYSIS</h5>
  23. <span>PGR COMPLAINT AGE ANALYSIS Reports list module</span>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="col-lg-4">
  28. <nav class="breadcrumb-container" aria-label="breadcrumb">
  29. <ol class="breadcrumb">
  30. <li class="breadcrumb-item">
  31. <a href="/index"><i class="ik ik-home"></i></a>
  32. </li>
  33. <li class="breadcrumb-item">PGR Complaints</li>
  34. <li class="breadcrumb-item">User ID Wise Reports</li>
  35. <li class="breadcrumb-item active" aria-current="page">PGR COMPLAINT AGE ANALYSIS Reports List</li>
  36. </ol>
  37. </nav>
  38. </div>
  39. </div>
  40. </div>
  41. <hr>
  42. <div class="row">
  43. <div class="col-md-12">
  44. <div class="card">
  45. <div class="card-block">
  46. <div>
  47. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="100%">
  48. <thead class="thead-dark">
  49. <tr role="row">
  50. <th class="text-center no-sort" width="1%">S.No</th>
  51. <th class="text-center" width="10%">Department</th>
  52. <th class="text-center" width="10%">User Name</th>
  53. <th class="text-center" width="10%">Mobile Number</th>
  54. <th class="text-center" width="10%">Nos</th>
  55. </tr>
  56. </theadclass="thead-dark">
  57. <tbody>
  58. <tr th:each="asset, i : ${assetlist}" class="assetlist">
  59. <td th:text="${i.count}">0</td>
  60. <td class="text-center" th:text="${asset.assetCategory.catName}"></td>
  61. <td class="text-center" th:text="${asset.zoneId}"></td>
  62. <td class="text-center" th:text="${asset.divId}"></td>
  63. <td th:text="${asset.assetName}"></td>
  64. <td th:text="${asset.assetAddress}"></td>
  65. <td th:text="${asset.assetCode}"></td>
  66. <td class="text-center" th:if="${asset.isActive}"><span class="badge bg-success">Active</span></td>
  67. <td class="text-center" th:unless="${asset.isActive}"><span class="badge bg-warning">InActive</span></td>
  68. <td class="text-center">
  69. <a th:href="@{#}" th:onclick="return callEdit([[${asset.assetId}]])" data-animation="true" data-toggle="tooltip" data-placement="top" title="Edit" data-original-title="Edit"><i class="ik ik-edit f-16 text-green"></i></a>
  70. <a th:href="@{#}" th:onclick="return callDelete([[${asset.assetName}]], [[${asset.assetId}]] );" data-animation="true" data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete"><i class="ik ik-trash-2 f-16 text-red"></i></a>
  71. </td>
  72. </tr>
  73. </tbody>
  74. <tfoot class="thead-dark">
  75. <tr>
  76. <th class="text-center">S.No</th>
  77. <th class="text-center">Department</th>
  78. <th class="text-center">User Name</th>
  79. <th class="text-center">Mobile Number</th>
  80. <th class="text-center">Nos</th>
  81. </tr>
  82. </tfoot>
  83. </table>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  92. </div>
  93. </div>
  94. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  95. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  96. <script>
  97. $(document).ready(function() {
  98. // DataTables buttons configuration
  99. var buttons = [
  100. {
  101. extend: 'pageLength',
  102. className: 'btn btn-warning'
  103. },
  104. {
  105. title: 'Data export',
  106. extend: 'copyHtml5',
  107. text: 'Copy',
  108. className: 'btn btn-secondary',
  109. id: 'copyBtn'
  110. },
  111. {
  112. extend: 'excelHtml5',
  113. text: 'Excel',
  114. className: 'btn btn-secondary',
  115. id: 'excelBtn'
  116. },
  117. {
  118. extend: 'csvHtml5',
  119. text: 'CSV',
  120. className: 'btn btn-secondary',
  121. id: 'csvBtn'
  122. },
  123. {
  124. extend: 'pdfHtml5',
  125. text: 'PDF',
  126. className: 'btn btn-secondary',
  127. id: 'pdfBtn'
  128. },
  129. // Additional button
  130. {
  131. text: '<i class="far fa-plus-square"></i> Add New Asset',
  132. className: 'btn btn-warning',
  133. action: function () {
  134. callAdd();
  135. }
  136. }
  137. ];
  138. $('#assetDatatable').DataTable( {
  139. dom: 'Bftip',
  140. columnDefs: [
  141. { targets: 'no-sort', orderable: false }
  142. ],
  143. lengthMenu: [
  144. [ 50, 100, 200, 500, -1 ],
  145. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  146. ],
  147. scrollY: '50vh',
  148. fixedColumns: {
  149. left: 1,
  150. right: 1
  151. },
  152. buttons: [buttons],
  153. fixedHeader: true,
  154. autoWidth: true,
  155. responsive: true,
  156. searching: false,
  157. select: false,
  158. processing: false,
  159. } );
  160. } );
  161. function callAdd(){
  162. $('#addForm').modal({
  163. backdrop: 'static',
  164. keyboard: false
  165. })
  166. $('#addForm').modal('show');
  167. }
  168. </script>
  169. </body>
  170. </html>