diff --git a/addons/default/visiosoft/advs-module/resources/js/admin/dashboard/report.js b/addons/default/visiosoft/advs-module/resources/js/admin/dashboard/report.js index abce7e34c..9911364e8 100644 --- a/addons/default/visiosoft/advs-module/resources/js/admin/dashboard/report.js +++ b/addons/default/visiosoft/advs-module/resources/js/admin/dashboard/report.js @@ -48,6 +48,7 @@ $(document).ready( function () { processing: true, serverSide: true, columns: [ + { data: 'id', orderable: false }, { data: 'name', render: function ( data, type, row, meta ) { diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php index fc320a6c5..00ba46d7f 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php @@ -395,4 +395,5 @@ return [ 'pages_without_meta_information_report' => 'Pages Without Meta Information Report', 'page' => 'Page', 'undefined_page' => 'Undefined Page', + 'id' => 'ID', ]; diff --git a/addons/default/visiosoft/advs-module/resources/views/admin/dashboard/report.twig b/addons/default/visiosoft/advs-module/resources/views/admin/dashboard/report.twig index 5bcd7b9d5..486cd18cc 100644 --- a/addons/default/visiosoft/advs-module/resources/views/admin/dashboard/report.twig +++ b/addons/default/visiosoft/advs-module/resources/views/admin/dashboard/report.twig @@ -1,66 +1,65 @@ -
- {% set reports = [ - { - 'title': trans('visiosoft.module.advs::field.product_stock_report'), - 'id': 'stockReport', - 'columns': [ - trans('visiosoft.module.advs::field.product'), - trans('visiosoft.module.advs::field.stock.name'), - ], - }, - { - 'title': trans('visiosoft.module.advs::field.active_passive_products_report'), - 'id': 'activePassiveReport', - 'columns': [ - trans('visiosoft.module.advs::field.status.name'), - trans('visiosoft.module.advs::field.count'), - ], - }, - { - 'title': trans('visiosoft.module.advs::field.unexplained_products_report'), - 'id': 'unexplainedReport', - 'columns': [ - trans('visiosoft.module.advs::field.product'), - ], - }, - { - 'title': trans('visiosoft.module.advs::field.non_image_products_report'), - 'id': 'noImageReport', - 'columns': [ - trans('visiosoft.module.advs::field.product'), - ], - }, - { - 'title': trans('visiosoft.module.advs::field.pages_without_meta_information_report'), - 'id': 'metaPageReport', - 'columns': [ - trans('visiosoft.module.advs::field.page'), - ], - }, - ] %} +{% set reports = [ + { + 'title': trans('visiosoft.module.advs::field.product_stock_report'), + 'id': 'stockReport', + 'columns': [ + trans('visiosoft.module.advs::field.product'), + trans('visiosoft.module.advs::field.stock.name'), + ], + }, + { + 'title': trans('visiosoft.module.advs::field.active_passive_products_report'), + 'id': 'activePassiveReport', + 'columns': [ + trans('visiosoft.module.advs::field.status.name'), + trans('visiosoft.module.advs::field.count'), + ], + }, + { + 'title': trans('visiosoft.module.advs::field.unexplained_products_report'), + 'id': 'unexplainedReport', + 'columns': [ + trans('visiosoft.module.advs::field.id'), + trans('visiosoft.module.advs::field.product'), + ], + }, + { + 'title': trans('visiosoft.module.advs::field.non_image_products_report'), + 'id': 'noImageReport', + 'columns': [ + trans('visiosoft.module.advs::field.product'), + ], + }, + { + 'title': trans('visiosoft.module.advs::field.pages_without_meta_information_report'), + 'id': 'metaPageReport', + 'columns': [ + trans('visiosoft.module.advs::field.page'), + ], + }, +] %} - {% for report in reports %} -
-
-
-
{{ report.title }}
-
+{% for report in reports %} +
+
+
+
{{ report.title }}
+
-
- - - - {% for column in report.columns %} - - {% endfor %} - - -
{{ column }}
-
+
+ + + + {% for column in report.columns %} + + {% endfor %} + + +
{{ column }}
- {% endfor %} -
+
+{% endfor %}