From 14f4c44aabd49a5c78a3c34b33982fc3c3d0bd27 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Wed, 11 Jan 2023 23:17:24 +0100
Subject: [PATCH] #724 - reduce opacity of skipped rows

---
 .../src/main/resources/static/css/transactionImport.css       | 4 ++++
 .../resources/templates/transactions/transactionImport.ftl    | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/BudgetMasterServer/src/main/resources/static/css/transactionImport.css b/BudgetMasterServer/src/main/resources/static/css/transactionImport.css
index 58da3cc99..7056f8b1c 100644
--- a/BudgetMasterServer/src/main/resources/static/css/transactionImport.css
+++ b/BudgetMasterServer/src/main/resources/static/css/transactionImport.css
@@ -11,4 +11,8 @@
 
 .transaction-import-text-with-icon i {
    margin-right: 1.3rem;
+}
+
+.transaction-import-row-skipped {
+    opacity: 0.5;
 }
\ No newline at end of file
diff --git a/BudgetMasterServer/src/main/resources/templates/transactions/transactionImport.ftl b/BudgetMasterServer/src/main/resources/templates/transactions/transactionImport.ftl
index c31894679..6ebad9810 100644
--- a/BudgetMasterServer/src/main/resources/templates/transactions/transactionImport.ftl
+++ b/BudgetMasterServer/src/main/resources/templates/transactions/transactionImport.ftl
@@ -205,7 +205,7 @@
 </#macro>
 
 <#macro renderCsvRow csvTransaction index>
-    <tr>
+    <tr class="<#if csvTransaction.getStatus().name() == 'SKIPPED'>transaction-import-row-skipped</#if>">
         <form name="NewTransactionInPlace" method="POST" action="<@s.url '/transactionImport/' + index + '/newTransactionInPlace'/>">
             <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
             <td><@statusBanner csvTransaction.getStatus()/></td>
-- 
GitLab