From eb2129a11d95323b787d9dcce5d6cd5853b49c99 Mon Sep 17 00:00:00 2001 From: JhonSGIzquierdo <53907237+MetalPrime@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:45:51 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(innovations):=20update=20a?= =?UTF-8?q?nimation=20and=20table=20visual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/projects/projectInnovationList.ftl | 70 ++++++++++--------- .../crp/css/projects/projectInnovations.css | 2 - .../crp/js/projects/projectInnovationsList.js | 3 +- 3 files changed, 38 insertions(+), 37 deletions(-) diff --git a/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectInnovationList.ftl b/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectInnovationList.ftl index 2be51e2c27..9415352789 100644 --- a/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectInnovationList.ftl +++ b/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectInnovationList.ftl @@ -4,10 +4,13 @@ [#assign pageLibs = [ "datatables.net", "datatables.net-bs"] /] [#assign customJS = [ "${baseUrlMedia}/js/projects/projectInnovationsList.js?20241218", - "${baseUrlCdn}/global/js/autoSave.js", + [#-- "${baseUrlCdn}/global/js/autoSave.js", --] "${baseUrlCdn}/global/js/fieldsValidation.js" ] /] -[#assign customCSS = ["${baseUrlMedia}/css/projects/projectInnovations.css?20240517"] /] +[#assign customCSS = [ + "${baseUrlCdn}/global/css/customDataTable.css", + "${baseUrlMedia}/css/projects/projectInnovations.css?20240517" + ] /] [#assign currentSection = "projects" /] [#assign currentStage = "innovations" /] [#assign isListSection = true /] @@ -36,32 +39,33 @@ [#-- Section Messages --] [#include "/WEB-INF/crp/views/projects/messages-projects.ftl" /] - [#-- Innovations List --] -

[@s.text name="projectInnovations" /]

-
- - [@innovationsTableMacro list=(projectInnovations)![] /] -
- - [#-- Add Innovation Button --] - [#if canEdit] -
-
- -
+ [@s.form action=actionName method="POST" enctype="multipart/form-data" cssClass=""] + [#-- Innovations List --] +

[@s.text name="projectInnovations" /]

+
+ [@innovationsTableMacro list=(projectInnovations)![] /]
-
- [/#if] + + [#-- Add Innovation Button --] + [#if canEdit] +
+ +
+ [/#if] - [#-- Previous Innovations List --] -
-

Previous [@s.text name="projectInnovations" /]

-
- - [@innovationsTableMacro list=(projectOldInnovations)![] currentTable=false/] -
+ [#-- Previous Innovations List --] +
+

Previous [@s.text name="projectInnovations" /]

+
+ [@innovationsTableMacro list=(projectOldInnovations)![] currentTable=false/] +
+ + [/@s.form]
@@ -78,20 +82,20 @@ ID - [@s.text name="projectInnovations.table.title" /] - [@s.text name="projectInnovations.table.type" /] - [@s.text name="projectInnovations.table.stage" /] + [@s.text name="projectInnovations.table.title" /] + [@s.text name="projectInnovations.table.type" /] + [@s.text name="projectInnovations.table.stage" /] [@s.text name="projectInnovations.table.year" /] [#if action.hasSpecificities('feedback_active') ] Feedback Status [/#if] - Owner + Owner [#if currentTable] - + [/#if] - + [#if currentTable] - + [/#if] diff --git a/marlo-web/src/main/webapp/crp/css/projects/projectInnovations.css b/marlo-web/src/main/webapp/crp/css/projects/projectInnovations.css index 2000ef5844..be6fe32858 100644 --- a/marlo-web/src/main/webapp/crp/css/projects/projectInnovations.css +++ b/marlo-web/src/main/webapp/crp/css/projects/projectInnovations.css @@ -133,13 +133,11 @@ table ul { /** MARLO Responsibe Tables */ .table-responsive table { - min-width: 1500px; margin-bottom: 0; } .table-responsive { border: 1px solid #ddd; - max-height: 500px; } .table > thead > tr > th { diff --git a/marlo-web/src/main/webapp/crp/js/projects/projectInnovationsList.js b/marlo-web/src/main/webapp/crp/js/projects/projectInnovationsList.js index e1d233b131..f1b49810ad 100644 --- a/marlo-web/src/main/webapp/crp/js/projects/projectInnovationsList.js +++ b/marlo-web/src/main/webapp/crp/js/projects/projectInnovationsList.js @@ -5,8 +5,7 @@ $(document).ready(function() { // Add click event to tsURL links $('a[href*="/projects"]').on('click', function() { - const table = $(this).closest('#table-innovations_wrapper'); - const loadingElement = table.siblings('.loading'); + const loadingElement = $('.container_page_load'); loadingElement.show(); }); });