Skip to content

Commit

Permalink
🔧 chore(innovations): update animation and table visual
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalPrime committed Dec 18, 2024
1 parent e3b36dc commit eb2129a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 /]
Expand Down Expand Up @@ -36,32 +39,33 @@
[#-- Section Messages --]
[#include "/WEB-INF/crp/views/projects/messages-projects.ftl" /]

[#-- Innovations List --]
<h3 class="headTitle">[@s.text name="projectInnovations" /]</h3>
<div class="simpleBox table-responsive">
<div class="loading timeline-loader" style="display:none"></div>
[@innovationsTableMacro list=(projectInnovations)![] /]
</div>

[#-- Add Innovation Button --]
[#if canEdit]
<div class="buttons">
<div class="buttons-content">
<div class="addInnovation button-blue"><a href="[@s.url namespace="/${currentSection}" action='${(crpSession)!}/addNewInnovation'][@s.param name="projectID"]${projectID}[/@s.param][#include "/WEB-INF/global/pages/urlGlobalParams.ftl" /][/@s.url]">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> [@s.text name="form.buttons.addInnovation" /]
</a></div>
<div class="clearfix"></div>
[@s.form action=actionName method="POST" enctype="multipart/form-data" cssClass=""]
[#-- Innovations List --]
<h3 class="headTitle">[@s.text name="projectInnovations" /]</h3>
<div class="simpleBox table-responsive">
[@innovationsTableMacro list=(projectInnovations)![] /]
</div>
</div>
[/#if]

[#-- Add Innovation Button --]
[#if canEdit]
<div class="buttons">
<div class="buttons-content">
<div class="addInnovation button-blue"><a href="[@s.url namespace="/${currentSection}" action='${(crpSession)!}/addNewInnovation'][@s.param name="projectID"]${projectID}[/@s.param][#include "/WEB-INF/global/pages/urlGlobalParams.ftl" /][/@s.url]">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> [@s.text name="form.buttons.addInnovation" /]
</a></div>
<div class="clearfix"></div>
</div>
</div>
[/#if]

[#-- Previous Innovations List --]
<br />
<h3 class="headTitle">Previous [@s.text name="projectInnovations" /]</h3>
<div class="simpleBox table-responsive">
<div class="loading timeline-loader" style="display:none"></div>
[@innovationsTableMacro list=(projectOldInnovations)![] currentTable=false/]
</div>
[#-- Previous Innovations List --]
<br />
<h3 class="headTitle">Previous [@s.text name="projectInnovations" /]</h3>
<div class="simpleBox table-responsive">
[@innovationsTableMacro list=(projectOldInnovations)![] currentTable=false/]
</div>
<input type="hidden" name="projectID" value="${projectID}" />
[/@s.form]


</div>
Expand All @@ -78,20 +82,20 @@
<thead>
<tr class="subHeader">
<th id="tb-id" width="1%">ID</th>
<th id="tb-title" width="40%">[@s.text name="projectInnovations.table.title" /]</th>
<th id="tb-type" width="22%">[@s.text name="projectInnovations.table.type" /]</th>
<th id="tb-stage" width="15%">[@s.text name="projectInnovations.table.stage" /]</th>
<th id="tb-title" width="10%">[@s.text name="projectInnovations.table.title" /]</th>
<th id="tb-type" width="10%">[@s.text name="projectInnovations.table.type" /]</th>
<th id="tb-stage" width="10%">[@s.text name="projectInnovations.table.stage" /]</th>
<th id="tb-year" width="8%">[@s.text name="projectInnovations.table.year" /]</th>
[#if action.hasSpecificities('feedback_active') ]
<th id="feedbackStatus">Feedback Status</th>
[/#if]
<th class="owner">Owner</th>
<th class="owner" width="10%">Owner</th>
[#if currentTable]
<th></th>
<th width="1%"></th>
[/#if]
<th id="projectDownload" class="no-sort"></th>
<th id="projectDownload" width="1%" class="no-sort"></th>
[#if currentTable]
<th id="tb-remove" width="4%" class="no-sort"></th>
<th id="tb-remove" width="1%" class="no-sort"></th>
[/#if]
</tr>
</thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit eb2129a

Please sign in to comment.